Thread
:
syntax error using enum{}
View Single Post
#
2
04-02-2005, 13:56
Matt Leese
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Re: syntax error using enum{}
For one, enums aren't part of the C standard (unless they were add in ISO C99). Second, you have to give the enum a name. I believe the syntax is:
enum <name> {
<enum values>
};
Hope this is helpful.
Matt
Matt Leese
View Public Profile
Find all posts by Matt Leese
Find CD-Media Photos by Matt Leese
Find CD-Media Papers by Matt Leese