下面 C++ 代码用于统计每种字符出现的次数,当输出为 3 时,横线上不能填入的代码是( )。
string str="GESP is a good programming test!";
int x=0;
for(int i=0;i<str.length();i++)
{
if(____________)
{
x++;
}
}
cout<<x<<endl;
- A.
str[i]=='o' - B.
str[i]=='a'+14 - C.
str[i]==115 - D.
str[i]==111