原创 關於cin讀取失敗後失靈的修復----剖析輸入流的條件

#include <iostream>using namespace std;int main(){  int a;  while(cout<<"input a integer (1- 10) :",cin>>a,! (a>=1 &&