No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
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 … | |
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 | |
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: … |
The End.