Saturday, May 22, 2010

How can I make an array named X to hold MAXSIZE strings in C++?

make the int 'const' and it will/should work.


const int MAX_SIZE = 9999;

How can I make an array named X to hold MAXSIZE strings in C++?
Use pointers to create a dynamic array. Use new to dynamically allocate the size equal to MAXSIZE of string

statice

No comments:

Post a Comment