Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: RandallW
  • Content: Threads
  • Order by date
  1. RandallW

    I still can't figure my compiling error

    I'm using the time function in a program; the compiler says &quot;the term does not evaluate to a function&quot; 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 )...
  2. RandallW

    'time' function has gone bad on me

    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 &quot;error C2064: term does not evaluate to a function&quot;.....I checked error from the CD and it shows examples such as integer being used like a...
  3. RandallW

    fussy compiler?

    I can do this: int *a_pointer; Yet this causes an error during compilation: int *a_pointer = 2369; It says &quot;error C2440: cannot convert from 'const int' to 'int *' ( new behavior; please see help )&quot; I checked the error definition from the CD; it has examples for why the...
  4. RandallW

    now how did this happen?

    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 <<...
  5. RandallW

    bad pointer declaration?

    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?
  6. RandallW

    compile time error

    I'm trying to convert a little C program into C++.&nbsp;&nbsp;One of<br>my enumerated types gives an error when the file is compiled;&nbsp;&nbsp;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...

Part and Inventory Search

Back
Top