編程學習大全網
網站源碼
源碼下載
站長素材
人物素材
電腦編程
編程軟體
編程語言
當前位置:
編程學習大全網
-
電腦編程
- 輸入壹行字符,用函數編程統計其中有多少單詞
輸入壹行字符,用函數編程統計其中有多少單詞
#include <stdio.h>
#include <ctype.h>
int main()
{ int n=0,st=1;
char c; while ((c=getchar())!='\n') { if(isalpha(c))st=1;
else if(st)
{ st=0;
? n++;
}
} n+=st; printf("there are %d words.\n",n); return 0;
}
上一篇:
基本的幾何圖形知識點。
下一篇:
c語言編程問題 如何逐個讀取數字
相关文章
學單片機要先學電子設計嗎
怎麽為西門子編程軟件開發插件
達內簽了貸款協議如今還沒上課,可以退學費嗎?
中國的中小學生和上次理科班壹樣嗎?
廣州非常科技有限公司有外包加工是真的嗎?
雷頓三坐標怎麽跳過測量要素
python如何求不規則正態分布曲線標準差
copyright 2024
編程學習大全網