I'm trying to do this, but my compiler won't let me:
struct {
const char* string = "some text";
} myAnonymousStruct;
I believe it's because no assignments can be made in a struct declaration - they're supposed to be made in functions or otherwise. But am I really not even allowed to assign const char*
variables?
If anyone can let me know what I'm missing, I'd really appreciate it. thx