How can I make a list of ints?

I want to have a list of integers. I thought that an array would do fine but it seems that I have to specify a length for every array. Is there something similar to Lua's table layout of data or C#'s List layout of data?
I guess what you're looking for is a vector:

http://www.cplusplus.com/reference/vector/vector/?kw=vector
There are also more containers in STL.
And a container cheat-sheet to aid selecting the appropriate one ...
http://homepages.e3.net.nz/~djm/cppcontainers.html
Topic archived. No new replies allowed.