全局函数getline() 可以用于此目的,它也是字符串库的一部分。其用法如下。 ... Read first line of the file; getline(nameFile, input);; while (nameFile) ...
確定! 回上一頁