If what you posted is what you're actually trying to compile, it's no surprise. No part of that code is valid.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
typedef struct node node
struct
{ int
Is it obvious you are trying to define a structure type, but that's not the way of doing it.exempli gratia
typedef struct node
{
int first;
int second;
int etc; /* i.e. char, floats, arrays, pointer or struct */
};
/* after that you can declare a variable of type node */
node my_node;
Aia
Nearly a Posting Maven
2,392 posts since Dec 2006
Reputation Points: 2,224
Solved Threads: 218
It's obvious you just found that code from somewhere on the net and your are desperately trying to make it work for you.
I would recommend starting from the beginning with your own code, because then they will be your own ideas and ultimately you will get a lot more out of it.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439