Why does the intro message repeat

Alright well the program is working over all great but for some reason once it runs once and goes to repeate the into message is displayed twice could some one tell me why this is happening

now the code didnt run on here but it runs in a compiler

your code is hard to follow with all those global variables.
I guess that the problem is that you are leaving a '\n' in the buffer, that then getline() interprets as empty input.
Topic archived. No new replies allowed.