|
查看: 1174|回复: 2
|
Microsoft Visual Studio 2008, 救命 !!
[复制链接]
|
|
|
#include<iostream.h>
void main()
{
int choice,category
cout<<"Enter Your Choice 1,2,3,4,5,6:";
cin>>choice;
switch(choice)
{
case 1:cout<<"You Entered Choice : 1 : Deluxe <<endl;break;
case 2:cout<<"You Entered Choice : 2 : Equator Club Room <<endl;break;
case 3:cout<<"You Entered Choice : 3 : Executive Suite <<endl;break;
case 4:cout<<"You Entered choice : 4 : Senator Suite <<endl;break;
case 5:cout<<"You Entered Choice : 5 : Governor Suite <<endl;break;
case 6:cout<<"You Entered Choice : 6 : Presidential Suite <<endl;break;
default :cout<<"You Entered Invalid Number"<<endl;
}
}
為什么會出現 ??
fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
不能 compile的 ??
有經驗的各位救救命
謝謝  |
|
|
|
|
|
|
|
|
|
|
发表于 22-4-2009 09:22 PM
|
显示全部楼层
这么多错误怎么能跑?
帮你改了点
#include<iostream>
using namespace std;
void main()
{
int choice,category;
cout<<"Enter Your Choice 1,2,3,4,5,6:";
cin>>choice;
switch(choice)
{
case 1:cout<<"You Entered Choice : 1 : Deluxe" <<endl;
break;
case 2:cout<<"You Entered Choice : 2 : Equator Club Room"<<endl;
break;
case 3:cout<<"You Entered Choice : 3 : Executive Suite "<<endl;
break;
case 4:cout<<"You Entered choice : 4 : Senator Suite "<<endl;
break;
case 5:cout<<"You Entered Choice : 5 : Governor Suite "<<endl;
break;
case 6:cout<<"You Entered Choice : 6 : Presidential Suite "<<endl;
break;
default :cout<<"You Entered Invalid Number"<<endl;
}
} |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 23-4-2009 03:41 PM
|
显示全部楼层
回复 2# evo9 的帖子
謝謝你
 |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|