How can I make a list of ints?

Nov 21, 2016 at 11:33am
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?
Nov 21, 2016 at 11:52am
I guess what you're looking for is a vector:

http://www.cplusplus.com/reference/vector/vector/?kw=vector
Nov 21, 2016 at 12:51pm
There are also more containers in STL.
Nov 22, 2016 at 4:27am
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.