第22400题 单选题
C++代码统计字符出现次数,x输出3时横线上不能填的代码是?

题目中的C++代码如下:

string str="GESP is a good programming test!";
int x=0;
for(int i=0;i<str.length();i++)
{
    if(__________)
    {
        x++;
    }
}
cout<<x<<endl;
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析