![]() |
Array Syntax Error
I'm using a lookup table to take joystick values and return a cubic function of them, basically just a drive ramp, but I cannot seem to get my array to compile properly. I have here a drastically reduced version, but one that still returns the same syntax error.
Code:
|
Re: Array Syntax Error
A small syntax error? You left out the name of the array!
Code:
rom const unsigned char arrname[2] = {0,3}; |
Re: Array Syntax Error
Code:
|
Re: Array Syntax Error
Please give me a moment while I proceed to beat my head against the wall...
Thanks! I knew I was missing something!!! |
Re: Array Syntax Error
It's ok.
Half an hour... Over a dozen code downloads... Two master resets... Then I remembered to plug the PWM cables in :) Oh and yeah, this beauty: Code:
if(x > 0) |
Re: Array Syntax Error
Quote:
He couldn't get a potentiometer value to display with the new 2006 code, so he put the old 2005 code in, only to discover that it still didn't work. A little while later a student walks in and notices that the OI was unplugged the whole time! :D Then there's always the problem of "why doesn't the camera work!?"... Oh, wait, the backup battery came loose again! Maybe a thread should be started with "Top 100 Stupid Programming Mistakes"? ;) |
Re: Array Syntax Error
Quote:
|
Re: Array Syntax Error
Quote:
|
| All times are GMT -5. The time now is 01:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi