int start,day,re;
cout<<"Hi,do you want to know what day is it in the future?Let this program help you!"<<endl;
cout<<"Please ender what day is it today,for example,if today is Sunday please enter 0"<<endl;
cin>>start;
cout<<"How many days after today?(less than 366!!!!)"<<endl;
cin>>day;
如上所示,在第一个cin时候输入一个小数给start,则第二个cin直接被跳过,就是不能给day赋值了?求牛人解释。
用F10 调试后,发现:start的值为3(如输入3.5),但day的值一直没有变,也是直接跳过。
DIEA
森林海