scanf("%*[^\n]%*c")是用掃描集將緩衝區中的字符全部讀取來實現清除緩衝區的動作。 ... int setvbuf(FILE * restrict stream, char * restrict buf, ...
確定! 回上一頁