c++ - Trying to use int in getline - Stack Overflow
經安全檢測,此網站為安全網站,請放心前往原始網址!
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.