| | |
Clear All Variable Values
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Hi. I have a program that goes a little like this:
Now, every time the program goes to main, the values previously stored in the varibles are still there. I am looking for a way to start with a clean slate and wipe all of the variables.
// Include files, etc...
int main()
//code...
if (input == "logout");
{
return main();
}
// rest of the codeNow, every time the program goes to main, the values previously stored in the varibles are still there. I am looking for a way to start with a clean slate and wipe all of the variables.
![]() |
Similar Threads
- To create a registration page and login page (HTML and CSS)
- C# program (C#)
- Insert data into two tables using php and mysql (MySQL)
- JS variable in PHP (PHP)
- Arrays (C++)
- Shopping Cart Not Working (ASP.NET)
- checkboxes problem (PHP)
- Object variable or With block variable not set (Visual Basic 4 / 5 / 6)
- Back button in browser (ASP.NET)
- I need special stuff in my project like system("cls") (C++)
Other Threads in the C++ Forum
- Previous Thread: Deque
- Next Thread: c++ to Mathematics
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib library linkedlist linker linux loop looping loops map math matrix memory newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct studio temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






