Amber
cin.get(); - C++ Forum - cplusplus.com - The C++ Resources NetworkAMBER's BIO Name: Amber Chia 生日: 14th December 星座: 射手座 家鄉: Sabah (Born in Ipoh) 身高: 175 cm 三圍: 32-25-35 興趣: Sports,and you type 37643, it gets all 5 characters, treats them as an integer, and correctly puts 37643 into myIntVar. By using cin.get(), you get only one of those characters, and it is treated as a char. Sometimes, the command prompt will close as soon as the...
全文閱讀