|
Kah Mun,
sorry, IC does not support the 'switch' construct.
re-write using if-thens.
fred
In your message you said:
> Whenever I run this simple program below, i get the following error message:
> "Fatal Internal Error: Illegal size to spew_peek_op(read local)". What does i t
> mean?? Please help..
>
>
> void servo(char balloon)
> { const float left_b=400.0;
> const float right_b=4840.0;
> const float center=2530.0;
> float t;
>
> switch (balloon)
> {
> case 'L': t=left_b+right_b;
> printf("Total=%f\n", t );
> break;
>
> case 'R': t=left_b+center;
> printf("Total=%f\n", t );
> break;
>
> case 'B': t=right_b+right_b;
> printf("Total=%f\n", t );
> break;
> }
> } /* end of program */
>
|
|
Message is in Reply To:
| | error message
|
| Whenever I run this simple program below, i get the following error message: "Fatal Internal Error: Illegal size to spew_peek_op(read local)". What does it mean?? Please help.. void servo(char balloon) { const float left_b=400.0; const float (...) (25 years ago, 14-Dec-99, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|