How do you properly define a struct in a header file?
say I have globals.cpp:
struct User
{
int age;
int weight;
};
User dave = {11, 100};
User notdave = {45, 193};
How would I make globals.h so that the struct and its members are accessible from all files? so far all Ive seen is basically rewriting the struct in the header yet while doing that the members are still not defined globally.