how to clear the values of the variables in win32 console?

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.
thank you Moschops, what can you suggest?
You can repeat the programme like this:

1
2
3
4
5
6
7
8
int main()
{
  do {
        // All your code
       }
  while {//some condition};
return 0;
}


http://www.cplusplus.com/doc/tutorial/control/


Last edited on
Topic archived. No new replies allowed.