![]() |
Computations: extra inputs?
My program:
:
#include <iostream>The problem with this code is that after the program finishes everything that it needs to, it won't terminate. Instead, it forces me to input two extras times. I suspect that it's probably because of the code :
cin >> sum >> product;Thanks in advance. |
Re: Computations: extra inputs?
Quote:
|
Re: Computations: extra inputs?
:
The problem is, when/if I remove that code, the program won't execute.I'd recommend doing this instead though: :
cin.get(); |
| All times are GMT -5. The time now is 4:07 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC