Why won't this simple function work?Thank you! I fixed it by changing [(vect.size()-i)] to [(vect.size()-(i+1))].
Why won't this simple function work?I'm trying to make a function that takes a reference to a vector as an argument, and reverses its el...
Requesting help with simple loop problemYes, with a little tinkering I realized that I didn't fully understand while loops. I was under the...
Requesting help with simple loop problemThanks you for the response. Adding the if statement before the push_back statement worked. I'm ...
Requesting help with simple loop problemI'm trying to have a while loop that reads integers into a vector, as long as cin.good(). The probl...
This user does not accept Private Messages