I am creating a program that has a menu used for navigating around it to different function and whatnot. I was wondering if there is a way to make it so that instead of typing in a number and pressing enter, you could just press the number associated with the next "page" to activate the function within it. I am very much a newbie, this is my first year practicing with C++, and understand if this takes a lot of work, but I am also just looking for some general tips on making an easy method navigation instead of "if user enters 1 go here, if user enters 2, go there, etc".
I've been playing around with this and I need help with two problems I'm running into.
For one, I can't access the functions. I set it up so that when the key is pressed a function will run but it just remains blank.
Secondly, I can't really figure out how I would return to the main menu after reaching said function. Any suggestions? I don't mean to be a bother, I'm just extremely confused lol.