C++ 文件打不开
file.open("library//小样本.csv",ios::in | ios::out);
if(!file)
{
cout<<"not open file"<<endl;
}
改为
file.open("library//small.csv",ios::in | ios::out);
if(!file)
{
cout<<"not open file"<<endl;
}
原因:vscode路径不能用英文。
C++ 文件打不开
file.open("library//小样本.csv",ios::in | ios::out);
if(!file)
{
cout<<"not open file"<<endl;
}
改为
file.open("library//small.csv",ios::in | ios::out);
if(!file)
{
cout<<"not open file"<<endl;
}
原因:vscode路径不能用英文。