View Single Post
Old Apr 1st, 2008, 10:54 PM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Re: Computations: extra inputs?

Quote:
Originally Posted by wannabe7 View Post
I suspect that it's probably because of the code
cin >> sum >> product;
. The problem is, when/if I remove that code, the program won't execute.
What do you mean by "won't execute"? Compiler error? It crashes? Wrong output? The reason for asking for input twice is because that line, well, asks for input twice.
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote