Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~28.2K People Reached
Favorite Forums
Favorite Tags
c++ x 10
oop x 2

5 Posted Topics

Member Avatar for Phaelax

Basically, see what you make of this: [url]http://msdn.microsoft.com/en-us/library/aa298504(VS.60).aspx[/url]

Member Avatar for Diego.Corso
0
27K
Member Avatar for cog_bn

Hi, I've got a problem with a program that boils down to strange behavior by the vector container class. It seems to not want to call constructors enough but calls destructors too many times: [CODE] #include <vector> #include <iostream> using std::cout; int constructor_count=1,destructor_count=1; class obj{public: obj(){ cout<<"C: "<<constructor_count++<<'\n'; } ~obj(){ …

Member Avatar for vijayan121
0
636
Member Avatar for cog_bn

Hi, Some time ago, I wrote a program that used the write() function of an fstream object to write a large file to a 100MB-zip-disk (it was an old computer). When I "End Now"ed the program I found that the zip disk was corrupted. The file didn't show up but …

Member Avatar for cog_bn
0
346
Member Avatar for Ameerah

Instead of declaring the functions in the header as "[I]void print(){}[/I]", you need "[I]void print()[B][I][I][U];[/U][/I][/I][/B][/I]". The same applies to the constructor. Also, you've declared the constructor to take in a string, but you implemented it to take an int in your .cpp file. You need to be consistent.

Member Avatar for Lerner
0
140
Member Avatar for cog_bn

When I run the code, what's supposed to happen is that when I input three numbers separated by spaces (e.g. "[i][u]23 4 5 <enter>[/u][/i]"), it outputs "[b]no more input\n\nReady\n[/b]", when I input four or more numbers (e.g. "[i][u]23 4 5 34 65 <enter>[/u][/i]"), it outputs "[b]is more input\n\nReady\n[/b]": [code] #include …

Member Avatar for cog_bn
0
183

The End.