![]() |
#2
shafeilong2010-11-11 20:43
|
cout << "Enter the check amount (0.00 to 999.99): ";
cin >> dollars;
cin.ignore();
cin >> cents;
我想请问一下如果我输入123.45,dollars、cents是多少了,为什么了?cin.ignore();
是一个什么作用了?谢谢了