• 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
C newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C newbie question


  • Subject: C newbie question
  • From: Michael Grant <email@hidden>
  • Date: Fri, 22 Jun 2001 18:45:45 -0500

Umm, I meant Project Builder, of course, not Power Builder.
Michael



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!


  • Prev by Date: Re: Trying again: how to implement textShouldEndEditing for NSTableView?
  • Next by Date: Re: Connecting actions to menu
  • Previous by thread: Re: C newbie question
  • Next by thread: RE: C newbie question
  • Index(es):
    • Date
    • Thread