Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualBacterius

Posted 13 February 2013 - 08:46 PM

You can't have parentheses in a variable name... char *menutext(n) is meaningless in standard C. If you want an array of character arrays, you need char* menutext[n] with the appropriate initialization code. Also, you forgot a semicolon. Also, menutext is declared after it is used, so it won't work. Also, everything after main isn't in a function, so you can't return from it.

 

Looks like old C code.

 

EDIT: I thought the menutext was a global variable - turns out its actually a function, look at Hodgman's post below for the translation.


#1Bacterius

Posted 13 February 2013 - 08:40 PM

You can't have parentheses in a variable name... char *menutext(n) is meaningless in standard C. If you want an array of character arrays, you need char* menutext[n] with the appropriate initialization code. Also, you forgot a semicolon. Also, menutext is declared after it is used, so it won't work. Also, everything after main isn't in a function, so you can't return from it.

 

Looks like old C code.


PARTNERS