Technology Forums :: C++ Forum
|
Subject |
Author |
Time Posted |
Rating |
|
what is the closest thing to a vector in C++? |
|
|
|
|
|
 Votes:4
|
|
|
|
|
Hello,
I was wondering if someone could help me figure out what is called a vector in C++ and how can I use it.
thanks,
Harold
|
|
|
|
|
|
Re:what is the closest thing to a vector in C++? |
|
|
|
|
|
 Votes:1
|
|
|
|
|
Dear Friend,
The closest thing to a vector in C++ is a data structure named vector. You can use it the following way:
->To insert an item into it you can call the function push_back(item).
->Finally, you can use it in your C++ files by including the directive:
#include
Hope this Helps,
Charles!
|
|
|
|
|
|
|
Go Back