Re: C newbie question
Re: C newbie question
- Subject: Re: C newbie question
- From: Don Messerli <email@hidden>
- Date: Fri, 22 Jun 2001 20:32:00 -0400
You need a semi-colon after the } in the structure declaration.
Don
On 6/22/01 6:53 PM, "Michael Grant" <email@hidden> wrote:
>
Working my way through "C for Dummies, vol. 2" (hey, what can I say,
>
I'm a dummy) in Power Builder, I run into a problem with the lesson
>
introducing the "struct". The following:
>
>
struct stuff
>
{
>
char c;
>
int n;
>
}
>
>
struct stuff mystuff;
>
>
gives me a compiler error at the last quoted line saying, "two or
>
more data types in declaration of mystuff". Now, isn't being able to
>
mix data types within a structure part of the point of having them?
>
What am I missing here?
>
>
Thanks,
>
Michael