C++ string iterator Incrementing
#include <iostream> #include <string> using namespace std; int main(int argc, char *argv []) { // w ww . jav a 2 s . com string myString{ "This is my string!" }; for (string::iterator iter = myString.begin(); iter != myString.end(); ++iter) { cout << *iter << endl; } return 0; }