Subject:
|
Re: unknown error
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Tue, 21 Dec 1999 21:01:52 GMT
|
Original-From:
|
Gary Livick <GLIVICK@PACBELL.antispamNET>
|
Viewed:
|
651 times
|
| |
| |
One obvious thing is that you must declare your local variables at the start of
the function before any statements.
Gary Livick
Kah Mun wrote:
> i've IC version 2.82. whenever i load the program below, it keeps giving me an
> error on the line which 'INT SPEED_TABLE[]' is declared.
> what's wrong??
>
> void main()
> { int i;
> start_press();
>
> int speed_table[]= {0b00000000, 0b00010001,0b01001001,0b01010101,
> 0b01010111,0b01110111,0b01111111,0b11111111};
>
> for (i=0; i<4; i++)
> {poke(0x0e, speed_table[i]);
> printf("%b\n", speed_table[i]);
> }
> }
|
|
Message is in Reply To:
| | unknown error
|
| i've IC version 2.82. whenever i load the program below, it keeps giving me an error on the line which 'INT SPEED_TABLE[]' is declared. what's wrong?? void main() { int i; start_press(); int speed_table[]= {0b00000000, (...) (25 years ago, 21-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
|
|
|
|