From 720c00cda5730c6dd2ccd8cfe608f7c8365904d2 Mon Sep 17 00:00:00 2001 From: johti17 <johti17@tlvm-4-1-2.ad.liu.se> Date: Fri, 27 Oct 2023 10:40:13 +0200 Subject: [PATCH] Added a comment. More modern C++ for Lab-2 --- lab2/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lab2/main.cc b/lab2/main.cc index 32a5458..da1d48b 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; } -- GitLab