Can anyone provide me with some tips on how to make the current view for instance return to the main view without having one screen for the entire program.
For example at an ATM:
You enter the correct password and Ac numbers and a new screen appears displaying the main menu. The user can perform a transaction and enter something that returns to the main screen. In a similar way I would like to know how to do this using C++.
Specifically how to do this can vary depending on what platform you're on and/or what library you're using.
Whatever library you're using surely has a way to create/destroy windows. You can destroy one window and create a new one when you want the view to change. Or, you could leave both of them created and simply hide/show the appropriate windows.