I made a function to display a menu of options for a player to choose from in a console RPG, but for some reason when it calls the function in the code, the screen clears and nothing happens:
Like I said, I am using Visual Studio. If you have Visual Studio, then you would understand, and it IS possible. In visual studio, you can run it without compiling it
It is NOT possible to compile the code you have posted here. It doesn't take a genius to realise it won't compile - what is Person? what is Console? just for a start. There is no magic with VS that will make your post run.
And you can try it yourself. Press the wheel in the top RH corner and all sorts of magical reasons why you are wrong appear on the screen.
The problem you have is you are testing too much code. We try to avoid playing "pick the bug". It sounds like you have an infinite loop, In practical terms what you need to do is track what's happening by inserting a line cout << "got this far" << endl; and progressively work your way through the maze. System CLS is something you don't need in the debug phase so comment it out.
Another way is to 'unit' test the while loop. Make a copy of you work and extract the while loop section and work on that until you get it right or have a workable even though not operational section to post here if you want help.