Remove the word struct from the typedef so it becomes:
typedef robot ROBOT
If there are still errors put the typedef after the struct robot declaration.
If you still get errors, print out the errors here.
In general the typedef should be ideally be declared with the struct:
typedef struct {
int data;
int text;
} S1;
Or even better if you are using C++, use classes.
Bookmarks