delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/04/23:19:55

From: "Martin Ambuhl" <mambuhl AT tiac DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: struct in struct
Date: Wed, 4 Mar 1998 22:19:45 -0500
Organization: Honors Bridge Club
Lines: 20
Message-ID: <6dl5hr$dq2@news-central.tiac.net>
References: <34FDCF71 DOT E34F2ED3 AT worldonline DOT nl>
NNTP-Posting-Host: p6.ts1.newyo.ny.tiac.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Reinier Heeres wrote in message <34FDCF71 DOT E34F2ED3 AT worldonline DOT nl>...
|Hi!
|
|How can I define a structure that should look something like this:
|
|typedef struct {
|  int a,b,c;
|  test *children[4];
|  } test;


With the assumption that this is C:
typedef struct test {
  int a,b,c;
  struct test *children[4];
} test;



- Raw text -


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