单选题 难度 2
数一数 programming 里有几个 r。
下面代码的输出是( )。 string s = "programming"; int c = 0; for (char ch : s) if (ch == 'r') c++; cout << c << endl;