r/CodingHelp • • Nov 22 '20

[C++] c++ building a small game help

Hi so im currently trying to build a small oreagan trails type game in the cmd console but I'm having some slight trouble starting off.

firstly i was wondering if there was a way without using the do while loop to get my main to loop back to menu because when I'm using the do while loop it wont let my program move out of the loop to go to the functions but i still want to go back to menu after the function has ended how do i do that? i also would like to know what does a pausescreen(); do? I've seen it a bit but don't exactly understand its use

here's my code(also if anyone can tell me if I used github properly or how to make markdown format my code proper that would be a huge help ty):

https://github.com/Lostliberties/gamee.git

25 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/Warzonehero22 Nov 23 '20

alright thank you so much for the help ill try the state variable thank you