概述
//抄的书上的统计单词数的代码
AC代码:
#include<iostream>
#include<cmath>
#include<iomanip>
#include<string>
#include<bits/stdc++.h>
using namespace std;
int main()
{
char sentence[60];
int n = 0;
cin >> n; getchar();
while (gets(sentence), n--)
{
char prev = ' ';
int cnt = 0;
for (int i = 0; sentence[i] != '