operators


I have read tutorials on C++ but nowhere does it explain the use of the new
operator.

I understand to create an instance of a class in C++ you just declare the type then the identifier.

If so, then what purpose does the operator serve?

Can someone please explain.

Thanks.
Go to this website.
http://msdn.microsoft.com/en-us/library/kewsb8ba.aspx

Hope that helps!

http://www.cplusplus.com/doc/tutorial/dynamic.html

new is used to allocate memory in the heap. This kind of allocation is called "dynamic memory allocation".
Topic archived. No new replies allowed.