cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How can I make a list of ints?
How can I make a list of ints?
Nov 21, 2016 at 11:33am
Nov 21, 2016 at 11:33am UTC
xXLiLxJXx
(4)
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
Nov 21, 2016 at 11:52am UTC
coder777
(8449)
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
Nov 21, 2016 at 12:51pm UTC
boost lexical cast
(395)
There are also more containers in STL.
Nov 22, 2016 at 4:27am
Nov 22, 2016 at 4:27am UTC
gunnerfunner
(2127)
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.