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?![]()
This is a discussion on problem with functions and "parse errors" within the C++ Programming forums, part of the General Programming Boards category; I created a program with a function, but it keeps on saying "37: parse error before `int' " heres line ...
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?![]()
you are probably missing or got one too many { or }
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
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)
-Govtcheez
govtcheez03@hotmail.com