fstream f("C:\\Users\\neko\\1.txt"); if(!f.is_open()) { cout<<"文件读取失败."<<endl; system("pause"); exit(0); }
代码如上 运行之后结果如下,求大佬给一些解决办法。。