First post here, I'll try to make it understandable heh. I have a question concerning object creation. Let's say I have a class called Node and I want to create an object called myNode. What's the difference between:
Node * myNode = new Node(); Node myNode; // Then assuming we have some methods myNode->setValue(1); //for the first way of creating the object myNode.setValue(1); //for the second way listed above
If I compile and trace through, it seems both are calling the necessary constructors, both behave in the same way. What difference exists between the above code?