在這種情況下,我們利用 fgets 函式來讀取檔案的內容,直到遇到一個新行字元。 ... printf("Write input text: "); fgets(buf, SIZE , stdin); ...
確定! 回上一頁