• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C newbie question


  • Subject: Re: C newbie question
  • From: Don Messerli <email@hidden>
  • Date: Fri, 22 Jun 2001 20:32:00 -0400

You need a semi-colon after the } in the structure declaration.

Don




On 6/22/01 6:53 PM, "Michael Grant" <email@hidden> 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


References: 
 >C newbie question (From: Michael Grant <email@hidden>)

  • Prev by Date: RE: C newbie question
  • Next by Date: Re: *?
  • Previous by thread: Re: C newbie question
  • Next by thread: Re: C newbie question
  • Index(es):
    • Date
    • Thread