First of all THANK YOU ALL FOR HELPING ME.
What I want to do is make my own data type containing other data using '.' tokens. I get these errors when I do this though.
struct Point_t pn;
typedef struct Point_t{
int X, Y;
} Point;
void init_Point(int a, int b){
Point.X = a; // error: expected identifier or '(' before '.' token
Point.Y = b; // error: expected identifier or '(' before '.' token
}
If you know what these errors mean please let me know.
I need to be able to initialize the Point when I declare it though. How do I do that?
Bookmarks