Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~466 People Reached
Favorite Forums
Favorite Tags
c++ x 6
c x 5
Member Avatar for johnson9000

Why does my file operation code write random data over the first two numbers I store in the file. The code compiles and runs without error messages, but I try to store the vector [0 0 0 0 0] and instead I get [20520 2414 0 0 0]. I am …

Member Avatar for Dave Sinkula
0
157
Member Avatar for johnson9000

Which method below requires less processor time? [CODE]class obj{ public: void DoSomeThing(){}; }; int main() { obj *p = new obj; p->DoSomeThing(); // OR obj theObj; theObj.DoSomeThing(); return 0; } [/CODE] Thanks for your help. W.Johnson

Member Avatar for johnson9000
0
146
Member Avatar for johnson9000

I am trying to push a pointer into a vector, but my compiler gives me the error: request for member 'Add_Object' in theContainer, which is of non-agregate type 'Container(X)' Please tell me what I am doing wrong. Here is my code: [CODE] #include <vector.h> #include <iostream> class Object { private: …

Member Avatar for johnson9000
0
163