一般來說scanf 遇到空白、\t、\n 就會自動中斷: scanf("%s",str); // 輸入「hello world」 printf("%s",str); // 輸出「hello」. scanf 可以自定欲接收的字元,改一下 ...
確定! 回上一頁