codeWord - Thoughts on Software
Wednesday, March 17, 2004
Re: ansi c++ revisited(by me)
that won't work in C++, new returns the address of the object it created on the heap, so it will have to be
MyClass * x2 = new MyClass;
or
MyClass x2 = *(new Myclass);
Thanks. Keeping Java, C# AND C++ straight in yer head is hard!
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment