Aug 1, 2013 at 10:19am UTC
I'm still new to c++. I want to know what is meant by "create an object of Pizza dynamically". Can anyone explain to me and maybe give me some examples. Thanks in advance.
Aug 1, 2013 at 10:27am UTC
I'm guessing you're being asked to allocate dynamic heap memory.
Assuming you have an object called Pizza.
Pizza *my_pizza =
Don't forget, you'd later need to free the memory using
Aug 1, 2013 at 10:50am UTC
Topic archived. No new replies allowed.
General C++ Programming
© cplusplus.com, 2000-2013 - All rights reserved -
Spotted an error? contact us