#include <io.h>
int main()
{
string filepath;
cin >> filepath;
int ftyp = _access(filepath.c_str(), 0);
if (0 != ftyp){
cout << "输入的文件目录不存在" << endl;
system("pause");
return -1; // this is not a directory!
}
}
#include <io.h>
int main()
{
string filepath;
cin >> filepath;
int ftyp = _access(filepath.c_str(), 0);
if (0 != ftyp)}
}