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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment