0

program with using new operator.

plz

10th Jul 2016, 3:24 PM
Rojin Bastola
Rojin Bastola - avatar
2 odpowiedzi
+ 1
The new and delete operator refer to dynamic memory. I'll link you to a Web page that explains it very well and has some code snip bits explaining things better than I could. I hope this helps. http://www.cplusplus.com/doc/tutorial/dynamic/
10th Jul 2016, 4:19 PM
destro
+ 1
char* myStr = new char[128]; this program allocates memory for 128 characters. Then you can assign values to each one of those chars.
10th Jul 2016, 4:19 PM
Garme Kain
Garme Kain - avatar