delorie.com/archives/browse.cgi | search |
From: | "BSTRhino" <bstrhino AT ihug DOT co DOT nz> |
Newsgroups: | comp.lang.c,comp.os.msdos.djgpp |
Subject: | C? |
Date: | Wed, 2 Aug 2000 20:33:29 +1200 |
Organization: | ihug (Christchurch) |
Lines: | 46 |
Message-ID: | <965205213.12767@newsch.es.co.nz> |
References: | <VzNh5.66969$V34 DOT 632862 AT news1 DOT sttls1 DOT wa DOT home DOT com> <t3efoskr4indutcg2i3n1mb3qd78nsq764 AT 4ax DOT com> |
NNTP-Posting-Host: | news.chc.ihug.co.nz |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
Cache-Post-Path: | newsch.es.co.nz!unknown AT p56-max11 DOT chc DOT ihug DOT co DOT nz |
X-Cache: | nntpcache 2.4.0b2 (see http://www.nntpcache.org/) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
So you are using C? C++ is so much better... I found that out from the comments /* You did them like this */ // I do them like this. -- Ray Hidayat JADE Kid - 2000 www.jadekids.com "Damian Yerrick" <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote in message news:t3efoskr4indutcg2i3n1mb3qd78nsq764 AT 4ax DOT com... > On Wed, 02 Aug 2000 04:37:09 GMT, "Danny Bran" <beaverss AT home DOT com> > wrote: > > (snip: "Please help me with my homework.") > > the program starts with the following statement > >create a structure with 2 fields age of type integer and height > >of type float. And then create an array of this structure, with > >a sizeof 5. Store values in this array and display them. > > This is a comp.lang.c question. Crosspost added. > > Anyway, your struct and array look like this: > > typedef struct Foo > { > int age; /* in Earth years */ > float height; /* in centimeters */ > } Foo; > > Foo bar[5]; /* records 0 to 4 */ > > You write the main(); it's your homework. > > -- > Damian Yerrick > "I refuse to listen to those who refuse to listen to reason." > See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html > > This is McAfee VirusScan. Add these two lines to your signature to > prevent the spread of signature viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |