64,654
社区成员
发帖
与我相关
我的任务
分享
const char * hosts = "C:'\'Windows'\'System32'\'drivers'\'etc'\'hosts.txt";
ofstream outFile;
outFile.open (hosts);
//这样打不开
把不要.txt后缀也不行
const char * hosts = "C:'\'Windows'\'System32'\'drivers'\'etc'\'hosts";
"C:\\Windows\\System32\\drivers\\etc\\hosts.txt"