X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Ftests%2Ffecalculator.cpp;h=c16265c00aeb5116402fb37d141bea5c9d44955a;hp=2ae39d986bae790adacbd83cd7a940c2c19247b6;hb=dfba002efc3b5f126ddb69e63b9a7dafdd9eacda;hpb=6472d20ee58d2ecc0aee8bc1a12a071b2afc8a27 diff --git a/src/tests/fecalculator.cpp b/src/tests/fecalculator.cpp index 2ae39d9..c16265c 100644 --- a/src/tests/fecalculator.cpp +++ b/src/tests/fecalculator.cpp @@ -17,7 +17,7 @@ int main(int argc, char ** argv) Debug("FLT_MIN = %.40f", FLT_MIN); Debug("FLT_EPSILON = %.40f", FLT_EPSILON); - while (true) + while (cin.good()) { float a; float b; char op;