Okay, now as you may know I'm relatively new to C++, that is why I'm posting in the beginners section. Now I don't know if this is really that much advanced at all. But here is what I want..
I want to run a program, that will have a login system, that once you log in it opens the real program. Now, I can write the login system, but once you enter the correct password and hit the 'Login' button, it will close that window(or make it invisible) and open the real program. This is what I'm confused on. I don't know how I would write that, now bare in mind I'm relatively new. So please explain as best as you can. The IDE I am using is Dev-C++. I have Visual C++ but prefer Dev.
As for an IDE I prefer using Code::Blocks.
Have you heard of a library called NCurses? (It is a Linux library, a Windows port is called PDCurses)
It lets you to easily destroy and create windows.
There's a simple tutorial how to set it up here: http://cymonsgames.com/getting-started-2/#curses
It isn't easy for beginners, but if you're already on writing a program with a login system and you don't want a GUI, then in my opinion it is the best (and cross-platform!) choice.
You don't have to open another code (.cpp) file.
You might as well wrap your code in functions. E.g. functions called "login" and "program". In the main, check if login was successful and if yes, run "program" otherwise quit.