I'm a beginner in C++, my first project is to make a menu type program using win32 console application. I was wondering if I can clear the variables to repeat the whole program without closing it? Is it possible?
Every variable has a value by virtue of the fact that there must be something in the memory occupied by that variable, even if you didn't set it yourself.
In general terms, whilst you can't clear the variable (i.e. make it have no value), you can set it to some default value of your choosing and repeat functions as many times as you like.