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
~27.9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Phaelax

Can't seem to figure this out. [CODE] string *array; void addNodes(string names[]) { array = names; //how many elements in the array??? } [/CODE]

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
625
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
322
Member Avatar for Ameerah

hi, please helpe me my code include one problem and i dont know how to slovet the heder [ICODE]#ifndef COURSE_H_ #define COURSE_H_ #include <iostream> using namespace std; #include<string> using namespace std; class Course { private: string id; int NumberOfCredits; static string serialId; public: Course(string corsename) { } void print() { …

Member Avatar for Lerner
0
137
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
171