Search:

Type: Posts; User: dadaC

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    4,804

    Use this:: /while((myIntVar =...

    Use this::

    /while((myIntVar = fgetc(myInputFileVar)) !=´'\n'){

    Do_something_with_the_ content_ of_ my_file = exit_SUCCESS;

    }
  2. Replies
    8
    Views
    1,464

    Your mean variable should first be initialized to...

    Your mean variable should first be initialized to double standard 0.00, and

    mean = (num1 + num2 + num3) / 3.0; should give you the ideal result with a printf("%lf", mean) or %.2lf for precise 2...
Results 1 to 2 of 2