Original Post
Can anyone list the pros/cons between these two methods?
Class newclass;
Class *newclass = new Class();
I''ve been wondering about this since I started C/C++ programming.
I would have thought the second would be easier to pass around, but you can pass the address of the first one just as easily.
Thanks for your thoughts!