#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
vector<string>s;
int num = 0;
string t;
while (cin >> t)
s.push_back(t);
for(auto c = s.begin();c!=s.end();++c)
{
if (*c == "now")
{
++num;
}
}
cout << num << endl;
return 0;
}
cpp primer第五版练习5.14
最新推荐文章于 2022-03-23 15:01:47 发布