Re: A89: Help with C


[Prev][Next][Index][Thread]

Re: A89: Help with C




Because you can't define _main as an integer... it should always be a
void, except there is some way to have it return a value with #define
RETURN_VALUE, but by what you are doing, it doesn't look too important
or intentional.

Brady Simon wrote:
> 
> Can someone tell me why my code won't compile. I am new to matrix's in C.
> All I want to do is make a matrix so I can display a list of strings at
> different points.
> Can someone tell me how to do matrix's if I am doing them wrong.
> Thanks
> 
> #include <nostub.h>
> #include <graph.h>
> #include <kbd.h>
> 
> int _ti89,_ti92plus;      // compile for both calcs
> 
> int _main(void)
> {
>   LCD_BUFFER buffer;
>   int mmenu[7,3];
>   LCD_save(buffer);
>   ClrScr();
> 
>   mmenu[7,3] = {
>           {"START",10,1},
>           {"PLAYERS",10,6},
>           {"ROUNDS",10,11},
>           {"ECONOMICS",10,16},
>           {"PHYSICS",10,21},
>           {"LANDSCAPE",10,26},
>           {"PLAYER OPTIONS",10,31},
>           {"WEAPONS",10,36},
>           {"SAVE CHANGES",10,41}
>   };
>   ngetchx();
>   LCD_restore(buffer);
> }
> 
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com

-- 
Scott "_Wrath_" Dial
wrath@calc.org
ICQ#3608935
Member of TCPA - tcpa.calc.org
_____________________________________________
NetZero - Defenders of the Free World
Click here for FREE Internet Access and Email
http://www.netzero.net/download/index.html



References: