increment the iterator : string iterator « String « C++
- C++
- String
- string iterator
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;
}
Related examples in the same category