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

c++ - Trying to use int in getline - Stack Overflow

question q; for(int i = 0; i < totalquestions; i++) { q.inputdata(); questions. push_back(q); } ... It can be done with getline() , but cin is much easier.

stackoverflow.com

網址安全性掃描由 google 提供