I'm trying to output the values stored in a vector to a text file or just to show the values in the command line.
So far I can't get it done, any suggestions?



for (std::vector<myType>::iterator it = myVector.begin(); it != myVector.end(); it++) {
//do stuff to (*it)
//(*it) is one element from myVector of type myType
}foreach (myType element in myVector) {
//do stuff to element
}

Users browsing this forum: No registered users and 0 guests