我自己写了一个程序,编译的时候通不过
string Order;
cout<<"Please enter command :"<<endl;
while(cin>>Order&&Order != “eof”)
{
switch(Order)
{
case “create”:
CreatFile();break;
case “read”:
ReadFile();break;
default :
cout<<"No this operation!"<<endl;
}
cout<<"Please enter command :"<<endl;
}
各位高手请多指点。