Search:

Type: Posts; User: turkadurka

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,640

    I fixed the problem by just rounding all the...

    I fixed the problem by just rounding all the values except for the discharge. Thanks Kurt!
  2. Replies
    8
    Views
    1,640

    Awesome! I checked with a precision of 8 before...

    Awesome! I checked with a precision of 8 before and it was 1988 vs 1988. I just checked with a precision of 15 and it was 1987.99999999999880. I now just have to change those calculations to integers.
  3. Replies
    8
    Views
    1,640

    If you try the text file out with the program,...

    If you try the text file out with the program, line 99 returns false when it should be true. I even display the two numbers before I check them and they look the same to me! Thanks again!
  4. Replies
    8
    Views
    1,640

    Problem with IF statement!

    Hey guys and gals!

    so currently my code is reading a txt file something like this.

    19880113041524 408
    19880113043027 406
    19880113044527 406
    19880113050027 406
    ...
  5. Replies
    4
    Views
    2,387

    haha yep! That was the problem! Thank you...

    haha yep! That was the problem!

    Thank you again, laserlight!
  6. Replies
    4
    Views
    2,387

    You are seriously the most awesome person on the...

    You are seriously the most awesome person on the internet <3. I did all the fixes and it works great!

    However, if i use...

    int (*data)[3] = malloc(330770 * sizeof(data[0]));



    it gives me...
  7. Replies
    4
    Views
    2,387

    Problem with fscanf loop!

    Hi all,

    Apologies for posting a thread so soon after finding an answer to my last one. This little snippet of my code is driving me crazy.

    Soooooo I dont understand the output for my code....
  8. Replies
    2
    Views
    3,122

    You da man.

    You da man.
  9. Replies
    2
    Views
    3,122

    Question about Malloc and fscanf

    Hi all,
    I have a very large file so I want to dynamically allocate the memory of a 2d array and then fill it up with the file inputs. Before i used malloc to make the 2d array, everything worked ...
Results 1 to 9 of 9