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

c++ - using getline(cin, s) after cin - Stack Overflow

Thus when you try and read the name with getline(cin,name) it reads to the end of line. BUT NOTE ...

stackoverflow.com

網址安全性掃描由 google 提供