Search:

Type: Posts; User: fattysmo

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    6,347

    When I close the file, I use ...

    When I close the file, I use

    infile.clear(); infile.close();

    I believe this is the correct way to do it (or, rather, it's always worked in the past). After my initial post, my computer...
  2. Replies
    4
    Views
    6,347

    C++ system("rm") not deleting properly?

    I wrote a program that, once it's done generating some data and putting it in a file, if the file is not a certain number of lines long it is deleted. Due to the nature of this, it generates and...
  3. Replies
    7
    Views
    1,620

    Thanks guys. I guess I shouldn't assume that any...

    Thanks guys. I guess I shouldn't assume that any two floating point values are equal to the full precision of the computer.
  4. Replies
    7
    Views
    1,620

    '

    I wrote a program that, among other things, utilizes a simple while loop with a '<=' operator. It malfunctioned in that it ignored the 'or equal to' part of the operator and quit the loop early. ...
Results 1 to 4 of 4