Re: C newbie question
Re: C newbie question
- Subject: Re: C newbie question
- From: Scott Herz <email@hidden>
- Date: Fri, 22 Jun 2001 18:55:19 -0700
Try:
struct stuff
{
char c;
int n;
}; <----- missing
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;
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
-- Now with LRF support and LBL technology!
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev