I'm not really sure about this, but is this even correct:
Quote:MyNode *x = new MyNode();
Doesnt it have to be like:
MyNode *x = new MyNode;
As far as I know, the constructor is called automatically for you.
Edit: Ok... I was wrong. But wont this:
Quote:
struct MyNode{ public: char *x; MyNode() { x = new char[25]; } private: };
create a memory leak? That is, unless you delete it yourself from main since its public.
-----------------------------....::::DRAGON BALL Z::::....C<<"+"<<"+"; // Go C++ !!!-----------------------------