View Single Post
Old 02-08-2005, 04:23 AM   #2 (permalink)
strcrssd
Insane
 
Location: Rio Grande Valley, Texas
The problem here is that you are making a a call to the getInput function by copy, not by reference.

If you replace this line:

void getInput(int input1, int input2)

with this:

void getInput(int& input1, int& input2)

and change the prototype as well, you might be in better shape. I'm not a a computer with a compiler right now, so I can't check it.
__________________
"I can't understand why people are frightened of new ideas. I'm frightened of the old ones." -- John Cage (1912 - 1992)
strcrssd is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37