先定義一個字元陣列char ch[100]; // 讀取輸入的字串gets(ch); // ex: Hello!! // 印出字串printf(“%s”,ch); ex: ... 回C 語言目錄. putchar、getchar、puts、fgets.
確定! 回上一頁