I was able to create this code, but when I tried to put in a sentence of 6 words, the command, std::cout << "An error has occured. Please enter 'help' for more." << std::endl; repeated itself 6 times. I only need it to repeat once. Any solutions?
use getline instead of >>input. >> works off whitespace, so spaces make a 6 word entry look like 6 entries. getline works of lines, so a 6 word entry looks like 1 entry. If you need to mix >> and getline, look up how to do that properly or you may get some problems.