Add MPFRC++ mpreal type
[ipdf/code.git] / src / tests / calculator.cpp
index 89009f1..ab100b9 100644 (file)
@@ -11,7 +11,7 @@ using namespace IPDF;
 
 int main(int argc, char ** argv)
 {
-       while (true)
+       while (cin.good())
        {
                double da; double db;
                char op;

UCC git Repository :: git.ucc.asn.au