We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
想請問一下如果我輸入input後 都一定要按enter才能把input丟進去 但這樣就會多讀到一個enter (不屬於input裡面的) 那這樣要把那個enter給扣掉 還是不用處理
The text was updated successfully, but these errors were encountered:
我們會 pipe 一個文件(可能有多行)到你的程式中,換行字元(\n)也是一個 ascii 字元,需要被編碼
\n
結束字元透過 EOF 判定,可以參考下方程式:
#include<stdio.h> int main() { char c; while(scanf("%c", &c) != EOF) { printf("%c", c); } return 0; }
Sorry, something went wrong.
No branches or pull requests
想請問一下如果我輸入input後
都一定要按enter才能把input丟進去
但這樣就會多讀到一個enter (不屬於input裡面的)
那這樣要把那個enter給扣掉
還是不用處理
The text was updated successfully, but these errors were encountered: