用C语言编写一段程序,输入一行字符,分别统计出其中的英文字母、空格、数字和其他字符的个数.

问题描述:

用C语言编写一段程序,输入一行字符,分别统计出其中的英文字母、空格、数字和其他字符的个数.
我自己编写了一个,可是出不来,还请大哥哥大姐姐帮帮我,
1个回答 分类:综合 2014-10-05

问题解答:

我来补答
非要限制输入的大小么?过会儿给你发个
#include
#include
void main(){
char m_input;
int digit=0,space=0,others=0,uppercase=0,lowercase=0;
printf("Please input string:");
while ((m_input=getchar())!='\n')
{
if (m_input>='a'&&m_input='A'&&m_input'0'&&m_input
 
 
展开全文阅读
剩余:2000
上一页:质点位移问题