作者:
zomzom (小雞)
2016-06-10 00:53:52開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Codeblock10.5 C語言
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
None
問題(Question):
算字數無反應
餵入的資料(Input):
123abcd
預期的正確結果(Expected Output):
7
錯誤結果(Wrong Output):
無反應
程式碼(Code):(請善用置底文網頁, 記得排版)
#include <stdio.h>
main( )
{
long nc;
nc=0;
while (getchar()!=EOF);
++nc;
printf("%ld characters\n",nc);
}
補充說明(Supplement):
有爬過文 有類似的 有Google過
http://www.programmer-club.com.tw/ShowSameTitleN/c/14550.html
有人使用dev-c++執行也不行
初學C不好意思 請各位大大幫忙解答 謝謝