I created a program with a function, but it keeps on saying
"37: parse error before `int' "
heres line 34 to 39
getch();
return 0;
}
int randomNum()
{
srand(time(NULL));
can anyone help?:confused:
Printable View
I created a program with a function, but it keeps on saying
"37: parse error before `int' "
heres line 34 to 39
getch();
return 0;
}
int randomNum()
{
srand(time(NULL));
can anyone help?:confused:
you are probably missing or got one too many { or }
Post the rest of the program - it'll really help in debugging it (note: use the code tages to post - it makes it so much easier to read and preserves indentation)
thanks! i just missed a }.