please delete this topic

please delete this topic
Last edited on
Code tags please (< > icon)

To quit:

first test if the input equals "q" (since that is your designated quit command)
then return out of main or call exit(): http://www.cplusplus.com/reference/clibrary/cstdlib/exit/
Hi

I am not sure what you meant? well I think the problem has something to do with get line and I am pretty sure the "q" was used. is just that is goes on to the if loop



for example; if I enter "q" when the program is running, it will just display ""The word you entered is unknown." and not go to the end of the do while loop and quit as I am trying to make it do

sorry if I confused you even more
Last edited on
thank for the help bachelor, I guess I will just figure it out someday
Sigh, another one.

Please OP, read this: http://cplusplus.com/articles/oGLN8vqX/
Topic archived. No new replies allowed.