Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 15,499 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
struct prototype? #316133
03/21/10 18:24
03/21/10 18:24
Joined: Feb 2004
Posts: 334
metal Offline OP
Senior Member
metal  Offline OP
Senior Member

Joined: Feb 2004
Posts: 334
hi,
i want to have two structs, each with a pointer to the other struct. is this possible with lite-c?
is there something like a struct prototype?

adding "struct Planet;" as in c++ doesn´t work frown
Code:
typedef struct Starsystem{
Planet* planet1;
} Starsystem;


typedef struct Planet{
Starsystem* System;
}Planet



Re: struct prototype? [Re: metal] #316136
03/21/10 18:35
03/21/10 18:35
Joined: Dec 2008
Posts: 271
Saturnus Offline
Member
Saturnus  Offline
Member

Joined: Dec 2008
Posts: 271
No, struct prototypes are not supported by lite-C.

You have to use void pointers here.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1