|
-
April 14th, 1999, 08:49 AM
#1
This is easy but I need help.
I am reviewing an MFC program and one of the functions has this struct in it:
static struct STYLES styles[] = {
PS_SOLID, "PS_SOLID",
PS_DASH, "PS_DASH",
PS_DOT, "PS_DOT",
(then it has some more etc....)
};
I understand the PS's and text but the whole "styles[]" has me at a loss.
Any help is greatly appreciated.
-
April 14th, 1999, 09:46 AM
#2
Re: This is easy but I need help.
It declares a variable length array of the struct STYLES. The initialisation adds 3 elements to it.
-
April 14th, 1999, 09:53 AM
#3
Re: This is easy but I need help.
that only means that the styles array will have as many members as you initialize. In your example it means styles has a size of 3.
adiós!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|