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 )
for ( dummy = 1; dummy <= jobs; dummy++ )
{ // begin 'dummy' and 'jobs'
if ( seed_defined )...
I've been using this piece of code that caused no compiler
trouble: srand ( ( unsigned ) time ( NULL ) );
Now it doesn't compile...it gives me "error C2064: term does
not evaluate to a function".....I checked error from the CD
and it shows examples such as integer being used like a...
I can do this:
int *a_pointer;
Yet this causes an error during compilation:
int *a_pointer = 2369;
It says "error C2440: cannot convert from 'const int' to 'int *' ( new behavior; please see help )"
I checked the error definition from the CD; it has examples
for why the...
I have little program where i'm testing something; here it is:
{code]
#include <stdio.h>
#include <iostream.h>
#define HUNDREDTHOUK 100000
#define HALFMIL 500000
#define THOUTWOKAY 200000
void main()
{
int first_array [THOUTWOKAY], second_array [THOUTWOKAY], dummy;
cout <<...
Here's what I have in my main function:
int *first = 29, *second = 50;
Attempting to compile, there is error C2440: cannot convert from 'const int' to 'int *'
What am I doing wrong?
I'm trying to convert a little C program into C++. One of<br>my enumerated types gives an error when the file is compiled; the 'flush' in it is being redefined ( according<br>to the compiler ); here it is....<br><br>enum win_result { loss = 0, jacks_or_better = 1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.