經安全檢測,此網站為安全網站,請放心前往原始網址!

cin.getline for int, or cin for strings? - C++ Forum - Cplusplus.com

So I used cin.getline, but that doesn't seem to want to like int for me. So anybody know how I can get both a string and an int from the keyboard?

www.cplusplus.com

網址安全性掃描由 google 提供