33,311
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream infile("language.txt",ifstream::in);
while (!infile)
{
cout<<"open error"<<endl;
char error[1000];
cin.getline(error,800);
strcat (error,"\\language.txt");
cout<<error<<endl;
ifstream infile(error,ifstream::in);
}
}