I'm using the time function in a program; the compiler says
"the term does not evaluate to a function"
Here is the piece of code that causes the trouble ( along with some surrounding code )
The error occurs at
time_returned is a long type; i've tried a different type; same error.
If I use the time function in a test program, where it's the only statement in
, it compiles fine;
I've looked at all my brackets and 'if-else's....they look fine.
I wish this site allowed me to attach the program; it would
make things so much easier.
"the term does not evaluate to a function"
Here is the piece of code that causes the trouble ( along with some surrounding code )
Code:
for ( dummy = 1; dummy <= jobs; dummy++ )
{ // begin 'dummy' and 'jobs'
if ( seed_defined )
time;
else
{
time ( &time_returned );
}
.
.
.
.
}
The error occurs at
Code:
time ( &time_returned );
If I use the time function in a test program, where it's the only statement in
Code:
main
I've looked at all my brackets and 'if-else's....they look fine.
I wish this site allowed me to attach the program; it would
make things so much easier.