#include<iostream>
#include<string>
using namespace std;
int main() {
string J = "aA";
string S = "aAAbbbb";
string::iterator i;//迭代器的使用
string::iterator j;
int c = 0;
for ( i = S.begin(); i != S.end(); i++) {
for (j = J.begin(); j != J.end(); j++) {
if (*i == *j)
c++;
}
}
cout << c << endl;
system("pause");
}