Mega Code Archive

 
Categories / C++ / String
 

Increment the iterator

#include <iostream> #include <string> #include <cctype> #include <algorithm> #include <vector> using namespace std; int main() {   string strA("This is a test.");   string::iterator itr;   itr = find(strA.begin(), strA.end(), 'a');   ++itr;   return 0; }