You're missing semi-colons at the end your first two cins and your last cout. Surely, though, you would have got error messages? It helps if you tell us what you've been told.
When i execute the program it shuts down after it completes the required steps. How can i make it so the programm stays open to show me the results for longer without shutting down as soon as it processes the results?
You would use a loop for that sort of thing. For instance, int main(char* argc, int argv) { bool done = false; <variable initialization here, i.e. float a,b,c,d,e,f> while ( done == false ) { <put your input and output code here> <add some condition here that would set done = true, such as when the user enters 0 for the first number> } return 0; } You should be able to get the exact details from any C++ reference, but a while loop combined with a condition variable should do what you want.
If you have access to a copy of the Teach Yourself C++ In 21 Days book I highly recommend reading it if you're serious about learning to write C++. It makes things a lot easier.
Yeh i have been using my textbooks but its not in there. IS there a code such as cout << "leave window open"<<endl; . etc?
Not really, no. You can, however, cout 'Press any key to close this window' then cin something... that will essentially wait for you to press a key / enter.