这样你的程序就可以完全运行了。如果你绑定到libc++,你唯一的选择就是使用窄字符流。编辑:使用MSVC,...
求助 用getline读txt文件 到末尾报错 编译器用的vs12 只看楼主 收藏 回复作死不是这么作 亮出16CM 1 void Get_Food(){ class Food *F; string inf="0",s; int i=0; ifstream f("E:/school/Food.txt"); if(f==NULL) cout<<"the information of Food cannot open!"<<endl; else { while(...
如果你绑定到libc++,你唯一的选择就是使用窄字符流。编辑:使用MSVC,此代码也不工作。不知道为什么微软...