要从文件中读取行 getline() , 有 fgets() 和posix 函数(忽略可怕 gets() 的)。它 getline() 是常识, 是首选, fgets() 因为它根据需要分配行缓冲区。
確定! 回上一頁