From 6802e55fced7a6954df7767f3db6dd8141102582 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 13 Feb 2019 13:41:51 -0600 Subject: Doing fixes before lab --- ee1301/wk2/lab2/calc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ee1301/wk2/lab2/calc.cpp b/ee1301/wk2/lab2/calc.cpp index 8fad156..ebe95f4 100644 --- a/ee1301/wk2/lab2/calc.cpp +++ b/ee1301/wk2/lab2/calc.cpp @@ -4,7 +4,7 @@ using namespace std; int main () { int a,b; char op; - cout << "Enter an equation: " - cin >> a, op, b; - cout << a << op << b << "=" + cout << "Enter an equation: "; + cin >> a >> op >> b; + cout << a << op << b << " = " << << endl; } -- cgit v1.2.3