syntax errror
- From: "danu" <danu82@xxxxxxxxx>
- Date: 1 Dec 2005 15:53:10 -0800
I have a structure :
typedef struct{
char magicNum[2];
int width;
int height;
int maxGrey;
int pixels[ROW][COLUMN];
} ImageT;
When I try to code this statement:
fscanf(infile, "%c", ImageT.magicNum[0]);
there is an error messege saying:
error: syntax error before 'ImageT'
What's the reason for that? What am I doing wrong here?
thanks.
.
- Follow-Ups:
- Re: syntax errror
- From: Daniel Rudy
- Re: syntax errror
- From: Martin Ambuhl
- Re: syntax errror
- From: Ben Pfaff
- Re: syntax errror
- From: Flash Gordon
- Re: syntax errror
- From: Keith Thompson
- Re: syntax errror
- From: Kenneth Brody
- Re: syntax errror
- From: Ben Pfaff
- Re: syntax errror
- From: Becker
- Re: syntax errror
- Prev by Date: Re: [OT] Finding stuff in the standard (was: Standard Defines)
- Next by Date: Re: pointers
- Previous by thread: Access screen memory or entering graphic mode
- Next by thread: Re: syntax errror
- Index(es):
Relevant Pages
|