可通過gets和scanf迴圈讀取一行字串,但gets會有緩衝區溢位的問題,所以建議採用scanf 可採用如下方式讀取char input[100]; char tmp; while (1) {
確定! 回上一頁