希望更丰富的展现?使用Markdown
by ZERORUSH @ 2018-11-22 19:46:36
int i=0;i<a.size();i++
by 404_notfound @ 2018-11-22 19:47:18
@[fallen_down](/space/show?uid=145411)
by 404_notfound @ 2018-11-22 19:48:02
emmm string长度没判
by Doveqise @ 2018-11-22 19:50:01
```cpp
#include <cstdio>
#include <algorithm>
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <string>
#include <cstring>
using namespace std;
int main()
{
char c;
int i=0;
while((c=getchar())!='\n')//输入
{
if(c==' ') continue;//为空格跳过
else i++;
}
cout<<i<<endl;//输出
}
```
by 破流 @ 2019-08-22 10:53:37