我有这个代码成功写入一个文件:
ofstream outfile (path); outfile.write(buffer,size); outfile.flush(); outfile.close();
缓冲区和大小在其余代码中都可以.如何将文件放在特定路径中?
c++ file filepath
c++ ×1
file ×1
filepath ×1