#include<iostream.h>
#include"ctype.h"
#include"conio.h"
int main()
{
int a;
cout<<"1+1="<<endl;
cout<<"a:1;b:2;c:3"<<endl;
cout<<"choose one:";
cin>>a;
if((a=='a')||(a=='b')||(a=='c'))
switch(a)
{case'a':cout<<"笨!"<<endl;break;
case'b': cout<<"对!"<<endl;break;
case'c':cout<<"很笨!"<<endl;break;
}
getch();
return 0;
}
它出现:32:2 D:\Dev-Cpp\include\c++\3.4.2\backward\backward_warning.h #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
HUWWW
缥缈止盈
侃侃无极
相关分类