编译显示错误:
fatal error: iostream: No such file or directory
但是其他程序可以与iostream
一起使用。
#include<iostream>
#include<windows.h>
using namespace std;
int main()
{
BOOL bDir;
LPCSTR lpDirName="C:/MY NEW FOLDER 3";
bDir = RemoveDirectoryA(lpDirName);
if(bDir)
{
cout<<"Successfully Deleted\n";
}
else
{
cout<<GetLastError();
}
system("PAUSE");
}
期望使用RemoveDirectoryA()删除目录