diff --git a/lab2/main.cc b/lab2/main.cc index 32a5458b06675d72bef7ffe811cc52ac633fc77c..da1d48b997cc0bd674af3b49e42df336f86d8b9e 100644 --- a/lab2/main.cc +++ b/lab2/main.cc @@ -9,11 +9,12 @@ int main(void) Parser parser; double val; - while (1) + while (true) { try { cout << "Expression: " << flush; + /* Implement the parser.Parse method */ val = parser.Parse(); cout << "Result: " << val << '\n' << flush; }