I really shouldn't be posting this because i've done this before, but the way of doing it that i was 100% sure about is causing errors and I can't find example code that goes through the 10 or so lines that I need. My old source files were obliterated courtesy of Dev-C++, so I'll just go ahead and embarrass myself with 10 lines I just can't figure out.
It's as if I didn't define 'test'. I can change 'test' in the assignment to anything and it still reports the same error.Code:typedef struct { int lols; int lol2; int lol3; }somestruct; somestruct test; test.lol3 = 0;
"syntax error before '.' token "
In all honesty I can't believe I'm making this topic, but I just don't know what the hell is going on. Sorry for the stupid question.