OK, I've managed to iron out all the bugs in my code, except for in the following code:
Code:
typedef struct
{
char surname[20];
char name[15];
int addLevel = 1;
int subLevel = 1;
int correct = 0;
int wrong = 0;
int correctSession = 0;
int wrongSession = 0;
} USER;
Which returns the following errors:
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 10 Syntax error; missing semicolon before `='
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 10 skipping `=' `1'
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 11 Syntax error; missing semicolon before `='
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 11 skipping `=' `1'
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 12 Syntax error; missing semicolon before `='
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 12 skipping `=' `0'
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 13 Syntax error; missing semicolon before `='
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 13 skipping `=' `0'
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 14 Syntax error; missing semicolon before `='
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 14 skipping `=' `0'
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 15 Syntax error; missing semicolon before `='
Error "c:\lee's folder\school files\cse1301\iproject\main.c": 15 skipping `=' `0'
So, I'm guessing that this means I can't assign values to struct members during declaration. Is there an easy way around this, or am I going to have to do this the hard way?
Thanks in advance,
Kirby1024