General C++ Programming (Page 34)

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)
by kinK
appointment
 
I have to code a menu based program using functions and parallel arrays to keep track of weekly appo...
[3 replies] Last: interesting http://www.cplusplus.com/forum/beginner/162238/ (by programmer007)
Error codes.
 
This is what I'm trying to do: Your new cell bill program must use 3 functions with parameters, as ...
[3 replies] Last: Note: I didn't understand your formulas to calculate the bill. Why did... (by digital D)
by avade
Help with simple exception handling
 
I need help understanding why the exception handling is not activating with this code. When I input ...
[5 replies] Last: The simple solution would be: if ( !(cin >> x) ) throw 1... (by cire)
Introducing Colony - a vector-ish C++ container without pointer/iterator invalidation
 
Hi all- in case any of you are interested, this is the vector-like container I've been working on: ...
[2 replies] Last: Have you tried also comparing to std::list and std::multiset in yo... (by LB)
Pages: 1... 3233343536... 45
  Archived months: [mar2015]

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