To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 7237
7236  |  7238
Subject: 
Re: unknown error
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 21 Dec 1999 21:01:52 GMT
Original-From: 
Gary Livick <{glivick@}AvoidSpam{pacbell.net}>
Viewed: 
3829 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, (...) (27 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
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR