delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/25/13:23:25

Date: Mon, 25 May 1998 19:20:12 +0200
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <199805251720.TAA12182@acp3bf.physik.rwth-aachen.de>
To: paulsen AT imailbox DOT com (Robert C. Paulsen, Jr.)
Cc: djgpp AT delorie DOT com
Subject: Re: I'm a Newbie with DJGPP!
Newsgroups: comp.os.msdos.djgpp
Organization: RWTH Aachen, III. physikalisches Institut B

In article <35697D38 DOT DD633DB AT imailbox DOT com> you wrote:
[...]
> 	typedef struct TAD {
> 		int code;
> 		struct TAD *next;	// note the *
> 		struct TAD *prior;	// noter the *
> 	} Tad;
> 	Tad myTad;

This one's fine, (even though I'd personally use 'Tad' for the struct
tag as well), ...

> Or, more simply:
> 	struct Tad {
> 		int code;
> 		Tad *next;
> 		Tad *prior;
> 	};
> 	Tad MyTad;

but this one *isn't*. At least not if it's C (not C++) we're talking
about.  They *are* different languages, after all (although some
people tend to forget that, from time to time).

--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019