I couldn add variables inside a header file.
I moved it outside the header file into a cpp file and now it works.
I should have looked a t my sig more :D
Type: Posts; User: Unini
I couldn add variables inside a header file.
I moved it outside the header file into a cpp file and now it works.
I should have looked a t my sig more :D
No, that isn't it.
Im defining this in a header file, does that make any differnece??
Why doesn't my structure work, I did the same thing as the tutorial on this site!
struct ship
{
int x_pos;
int y_pos;
};
ship player;
player.x_pos = 256;