在QT中关于文件读写,即便加了头文件,你会发现close()函数会报错函数
error: no matching function for call to 'communicat::close(int&),io
由于QT自己也有close函数,就会发生冲突。function
因此若是是文件读写函数须要写成以下格式call
::close(fd)error