General C++ Programming (Page 36)

by nte40
Turning user input into an array
 
Hi everyone , I am learning c++ by myself and just entered the topic of arrays . I have a ques...
[3 replies] Last: It is generally a good idea to lean about vectors before arrays and dy... (by LB)
how to add multiple entries without predesignated names to a class
 
so Basically I know how to use classes to create an item system for my game, but im struggling with...
[18 replies] Last: forget about helping, I figured most of it out... I still have shit t... (by spiroth10)
Double hashing question
 
Hello there, I'm writing double hash table and have some question about it. This is my hash func...
[4 replies] Last: Smac, Thanks for reply. I will read out the links you provided. Like... (by likenew)
by Market
Work Problem
 
Hello, I am fairly new at C++ and I need to write a program in C++ that opens a csv file, parse th...
[7 replies] Last: Work problem I need to write a program in C++ that ... Why C++? Ther... (by keskiverto)
Bigint Operations
 
Here I've got 2 classes, one is finished(a safeArray that I use for the second class which is what I...
[1 reply] : On line 131, you are not beginning with the value 0. A newly created ... (by cire)
operators
 
class Complex{ public: Complex(double r=0.0 , double i = 0.0 ) : _r(r) , _i(i){} void set(dou...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
array histogram random number
 
why wont this execute. i keeping getting { undeclared and old-style format error #include <iostream...
[3 replies] Last: http://www.cplusplus.com/articles/jEywvCM9/ (by TarikNeaj)
by Market
Covert Java to C++
 
Can someone please help convert the following code to C++. I am trying to read a csv file and parse...
[1 reply] : #include <unordered_map> #include <fstream> #include <string> using ... (by Smac89)
BST tree
 
#include "BST_CLAS.h" template<class type> BST_CLAS<type>::BST_CLAS() { root=NULL; curren...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
Linked List Operations
 
So I've got a linked list data base using templates which compiles fine and lets me print out a list...
[3 replies] Last: I still see " print_people_in_state " inside your template class. As I... (by LB)
Birthday Paradox
 
Hi, I am new to C++ and I am trying to teach myself. I am currently working on the Birthday Paradox....
[3 replies] Last: > I create a for loop to loop through each 2 through 50 people iirc yo... (by ne555)
by nad1
Enum
 
how to return a value from a function as enum? typedef enum { MALE, FEMALE } Gender; for this ...
[3 replies] Last: enum class is a single keyword that just happens to contain a space.... (by LB)
connecting with socket
 
hey there I programmed a socket code that binds to a port with port forwarding. when i open the pr...
[15 replies] Last: Ah, yes that is true. Sorry for the misunderstanding. (by LB)
1st memory allocation bug - can anyone help me find it?
 
I'm sure I did something n00bish here. I must have. I finally got that inventory system almost worki...
[18 replies] Last: Look up polymorphism. You can store all your instances in a std::vect... (by LB)
by Armaan
Math Game
 
Trying to make a Math Game Called “22” by programming. Two players will be able to play the game...
[9 replies] Last: >That's why i asked if someone could solve it. > human v/s human ok. ... (by anup30)
by saisr8
inheritance
 
How do visibility modes affect inheritance? Explain with examples.
[2 replies] Last: This is like your 4th post within 1 hour about inheritance. Like @Mike... (by TarikNeaj)
Stuck, Need Help!
 
I am trying to make my code analyze the data and then output the info, but I am doing so with arrays...
[3 replies] Last: @mjamesball9 Why are you using the comma operator in these lines? i... (by MikeyBoy)
by Addsy
Snake Game
 
Hi guys. I am creating a snake game for a project and am massively stuck on something. I'm trying ...
[5 replies] Last: std::make_pair(x,y); (by S G H)
by saisr8
classes
 
please define the following and give suitable examples (i)Abstract class (ii)Virtual base cla...
[1 reply] : Read this: http://www.cplusplus.com/doc/tutorial/classes/ http://en.c... (by coder777)
by saisr8
inheritance
 
simply Define inheritance and a few needs. of it
[1 reply] : Did you read this? http://www.cplusplus.com/doc/tutorial/inheritance/ (by DVSProductions)
Pages: 1... 3435363738... 48
  Archived months: [mar2015]

Cannot post in this page. To post a new message, go to the first page.