| | |
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
Views: 1638 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






