can some one tell me
|
|||
|
Rank: ? (8)
Member #: 25317 |
can some one tell were i am gong wrong
Code:
by there way i am a begginer at this and this is wat i made from the top of my head » Post edited 2007-02-05, 04:04am by misterhaan.
|
||
|
|||
|
|||
|
Rank: ? (4821)
Member #: 3416 |
on line 25, your switch statement is invalid. it should be in the format switch(expression), but you have case1, case2, case3. i'm not even sure what you mean by that since none of those are variables. my guess is that you want to do the switch statement on the value you read from input, so it should be after you read a value from input.
on line 29, you redeclare num1, num2, and num3 as double (they are already declared as double in lines 11-13). that means they only exist within the current set of braces, and in the case of this particular program, makes the ones declared on lines 11-13 useless. also, only num3 is getting a value here.
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
||
|
|||
|
|||
|
Rank: ? (6)
Member #: 29111 |
oh yeah ronny said thanks
|
||
|
Please login or register to post a reply.