cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to get the values of the actual iter
How to get the values of the actual iterator of a vector of structure
Jun 28, 2011 at 9:52am UTC
tonnot
(335)
Ok, I have a iterator
vector<mystructure> my_vector;
iterator vector<mystructure>::iterator it;
Ok , I can use the iterator so:
for (it=my_vector.begin();it<my_vector.end();it++)
Ok, how can I view mystructure data using the iterator *it ?
Thanks.
Topic archived. No new replies allowed.