LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

element of a structure pointing to same structure

 Sorry,found what's wrong Smiley Tongue

Message Edited by Graziano on 02-11-2009 03:13 AM
0 Kudos
Message 1 of 3
(3,172 Views)
You need to do this in 2 steps,

typedef struct sValue tValue;

struct sValue {
tValue *Previous, *Next;
};

tValue StartingPoint;
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 2 of 3
(3,136 Views)

It shouldn't be necessary, in ANSI C, the following code should work:

 

 

struct node {
int x;
node *next;
};



Hi!
0 Kudos
Message 3 of 3
(3,104 Views)