
Originally Posted by
CuntyLawrence
It still doesn't work the way you said it. I just takes me straight to the end where it tells me to press any button to continue then it closes
Then it's doing exactly what it should be doing because I didn't put any code in the add, sub, div, or mul functions, you'll have to do those yourself.
To prevent the black window from closing put system("pause"); or cin.get(); before return 0; in main()
Code:
cin.get();
return 0;
Also, using the system() function is usually bad practice for anything you want to have someone else use but if you're just using it to test code then it's safe.