Search:

Type: Posts; User: laserlight

Search: Search took 0.15 seconds.

  1. Replies
    73
    Views
    6,076

    I think that you should start a new thread for...

    I think that you should start a new thread for that. Furthermore, you should make an attempt before asking.
  2. Replies
    73
    Views
    6,076

    What this means is that you should change void...

    What this means is that you should change void main to int main.


    These should not be happening if you changed the fprintf call to what I described.

    I suggest that you post your current code...
  3. Replies
    73
    Views
    6,076

    If you want to print to a file, sure. The problem...

    If you want to print to a file, sure. The problem is that you are using a wrong format specifier. It should have been:

    fprintf(fp, "%d\n", random_number);
  4. Replies
    73
    Views
    6,076

    You seem to have got it right in the next line: ...

    You seem to have got it right in the next line:

    printf ( "%d\t", random_number) ;
Results 1 to 4 of 4