Search:

Type: Posts; User: vart

Search: Search took 0.08 seconds.

  1. Thread: please help

    by vart
    Replies
    21
    Views
    4,727

    BTW - you still have a bug in your for loop - you...

    BTW - you still have a bug in your for loop - you access 11 elements whule have only 10 in the array
  2. Thread: please help

    by vart
    Replies
    21
    Views
    4,727

    your indentetion suxx big deal - you do not even...

    your indentetion suxx big deal - you do not even see simplest bugs

    also - when you have return inside if - you do not need else - it just adds unneded indentation level



    #include <stdio.h>
    ...
  3. Thread: please help

    by vart
    Replies
    21
    Views
    4,727

    post your last code

    post your last code
  4. Thread: please help

    by vart
    Replies
    21
    Views
    4,727

    what are you talking about? fscanf reads from...

    what are you talking about?

    fscanf reads from the "indata.txt"

    what it has to do with your pressing enter?
  5. Thread: please help

    by vart
    Replies
    21
    Views
    4,727

    your fscanf could return 1 if one float value is...

    your fscanf could return 1 if one float value is successfully parsed
    0 if nothing is parsed (for example string that is not a number encountered)
    or EOF (which is -1 on most compilers) if the...
  6. Thread: please help

    by vart
    Replies
    21
    Views
    4,727

    1. do not put regular text inside the code tags...

    1. do not put regular text inside the code tags
    2. indent your code


    #include <stdio.h>

    int main ()
    {
    int i,a[10],val,n=0,max,min;
    FILE *fi,*fo;
Results 1 to 6 of 6