Re: C newbie question
Re: C newbie question
- Subject: Re: C newbie question
- From: Thomas Hudson <email@hidden>
- Date: Fri, 22 Jun 2001 17:16:11 -0700
On Friday, June 22, 2001, at 03:53 PM, Michael Grant 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;
>
You're missing a semicolon at the end of the structure definition. The
compiler
thinks it is all one statement, since either of the following is legal:
struct stuff
{
char c;
int n;
};
struct stuff mystuff;
or
struct stuff
{
char c;
int n;
} mystuff;