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...
Type: Posts; User: fattysmo
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...
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...
Thanks guys. I guess I shouldn't assume that any two floating point values are equal to the full precision of the computer.
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. ...