C newbie question
C newbie question
- Subject: C newbie question
- From: Michael Grant <email@hidden>
- Date: Fri, 22 Jun 2001 17:53:33 -0500
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!