摘要:
1 #include<std_lib_facilities.h> 2 int main() 3 { 4 int n; 5 cin>>n; 6 /*if (cin.fail()) 7 cin.clear();*/ 8 if(!cin) 9 cout<<"asf";10 system("pause");11 }12 clear()will chang the condition ofstream to good().This part of date's input and output are as follow 阅读全文