問題是getchar()不會停止讀取,直到使用者根據我的程式碼按enter手動輸入換行符。 ... int nchars) { int i = 0; while((str[i] = getchar()) !=
確定! 回上一頁