在我的应用程序中,我想将文件复制到另一个硬盘,所以这是我的代码:#includeusingnamespacestd;intmain(intargc,char*argv[]){stringInput="C:\\EmploiNAm.docx";stringCopiedFile="EmploiNAm.docx";stringOutputFolder="D:\\test";CopyFile(Input.c_str(),string(OutputFolder+CopiedFile).c_str(),TRUE);return0;}所以执行此操作后,它会在D:HDD中显示一个文件testEmploi
在我的应用程序中,我想将文件复制到另一个硬盘,所以这是我的代码:#includeusingnamespacestd;intmain(intargc,char*argv[]){stringInput="C:\\EmploiNAm.docx";stringCopiedFile="EmploiNAm.docx";stringOutputFolder="D:\\test";CopyFile(Input.c_str(),string(OutputFolder+CopiedFile).c_str(),TRUE);return0;}所以执行此操作后,它会在D:HDD中显示一个文件testEmploi