mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-07 18:06:58 +08:00
Add FZOI Codes
This commit is contained in:
18
FZOI/统计单词个数.cpp
Normal file
18
FZOI/统计单词个数.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
char ch;
|
||||
int cnt = 1;
|
||||
while(ch != '.')
|
||||
{
|
||||
ch = getchar();
|
||||
if(ch == ' ')
|
||||
{
|
||||
cnt ++ ;
|
||||
}
|
||||
}
|
||||
cout << cnt ;
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user