C++有getline()函式. C 有fgets(), gets() 函式. 用於讀取一行字元直到換行符,包括換行符. char * fgets ( char * str, int num, FILE * stream );.
確定! 回上一頁