关于'>>'输入的问题和判断的问题.
#include<iostream.h>
void main()
{
int x;
char y;
cout <<"请输入数据:";
cin >>x;
//cin >>y;
if(x==1)
cout <<"this is 1";
else if(x==3)
cout <<"this is 3";
else if(x==2)
cout <<"this is 2";
if(y=='a')
cout <<"this is a";
//this is dev-c++ code
int dev;
cin >>dev;
/* 1.为什么把cin >>y;前的注释符去掉,输入1或2或3,无反映?
2.把cin >>y;前加上注释后,输入a值也无反映,而输入1或2或3却行?
以上程序在dev-c++ 4.9.6.0中调试 */
}