C語言基礎: 標準字符串輸入輸出函數

一 標準輸入函數scanf,gets,fgets() scanf : 1 不能接收空格,tab、換行等字符 示例代碼: char buf[100]]; printf("請輸入字符串buf:\n"); //輸入 hello world scanf("%s",buf); printf("buf=%s",buf); //buf=hello,
相關文章
相關標籤/搜索