|
-
February 5th, 2014, 04:49 PM
#3
Re: Help with Vector input/couting
 Originally Posted by Philip Nicoletti
You have:
Code:
cin >> the_word; //when the desired words are entered, the if loop will catch those and enter them into the vector
while (cin >> the_word)
{
// etc.
}
The first cin reads the first word that is entered.
Fixed it, and everything works. Thanks for your help!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|