2017年3月11日

SCANF输入错误

摘要: while((a<=0||a>=10)||(b<=0||b>=10)) { fflush(stdin); cout<<"Please input a and b"<<endl; scanf("%d %d",&a,&b); } 要先清除输入流哦!! 好像这个做法不好:https://my.oschin 阅读全文

posted @ 2017-03-11 21:29 shoutcharter 阅读(236) 评论(0) 推荐(0) 编辑

导航