closed account (Dy0fSL3A)
If i have an array with a varied number of elements, say
// int j = 1000;
// string names[j] = {steve, brian, sean, kevin, jason}; 

I put j as a large number to represent the max # of elements i could have, but if I have less than that, such as in the example I have 5, is there any way I can store that number in an int?
Look up vectors.

Google C++ vector Example

This will take you to the reference section on the top left of this page.
Topic archived. No new replies allowed.