文件名称:4-2
介绍说明--下载内容均来自于网络,请自行研究使用
统计一行中字符的个数
通过getchar()读取字符,当读入的字符是换行符时循环结束。
输入要求:字符型数据
输出数据格式要求: d
输入输出样例:
Input Sample:
I m Chinese!
Output Sample:
12 -The number of characters in the statistics line by getchar () reads characters read into the character is a newline end of the cycle. Input Requirements: character data, output data format: d input output sample: Input Sample: I' m Chinese! Output Sample: 12
通过getchar()读取字符,当读入的字符是换行符时循环结束。
输入要求:字符型数据
输出数据格式要求: d
输入输出样例:
Input Sample:
I m Chinese!
Output Sample:
12 -The number of characters in the statistics line by getchar () reads characters read into the character is a newline end of the cycle. Input Requirements: character data, output data format: d input output sample: Input Sample: I' m Chinese! Output Sample: 12
(系统自动生成,下载前可以参看下载内容)
下载文件列表
说明.txt