Thread: Need opinion...
View Single Post
Old Jan 19th, 2005, 10:31 PM   #26
codetaino
Programmer
 
codetaino's Avatar
 
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4 codetaino is on a distinguished road
Hey Broax hi again I think your error is when u declare the variable total or var total... this is your code
int total;
var_total = var_num1 + var_num2;
i think is supposed to say
int var_total;
var_total = var_num1 + var_num2;

hope this info solve your prob... didnt compile it...

codetaino

Edited: sorry also when you assign a value to the variables you dont have to write the type of the variable again...

do one of two things... or delete the variable declarations without the assignments... example int var_num1; and leave the one int var_num1 = 10; that will do the two tasks declare the variable and initialize (or assign a value) or just erase the variable type on the assignments example int var_num1 = 10; changed to var_num1=10; without the int

codetaino
__________________
"God bless u all" :)

Last edited by codetaino; Jan 19th, 2005 at 10:35 PM.
codetaino is offline   Reply With Quote