Hi: I am having difficulty reading a list of integers entered in the console into a program I am writing. The code I am using is as follows?
int hmwk;
.
.
.
while (cin>>hmwk) {
hmwkVec.push_back(hmwk);
}
As you will see, I wish to populate a vector with the integers that are input...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.