aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-02-13 13:41:51 -0600
committerMatthew Strapp <msattr@gmail.com>2019-02-13 13:41:51 -0600
commit6802e55fced7a6954df7767f3db6dd8141102582 (patch)
tree93f06fdde625adbcfffa76ddacc6c3b7c57d76bd
parent-a is a useful flag (diff)
downloadhomework-6802e55fced7a6954df7767f3db6dd8141102582.tar
homework-6802e55fced7a6954df7767f3db6dd8141102582.tar.gz
homework-6802e55fced7a6954df7767f3db6dd8141102582.tar.bz2
homework-6802e55fced7a6954df7767f3db6dd8141102582.tar.lz
homework-6802e55fced7a6954df7767f3db6dd8141102582.tar.xz
homework-6802e55fced7a6954df7767f3db6dd8141102582.tar.zst
homework-6802e55fced7a6954df7767f3db6dd8141102582.zip
Doing fixes before lab
Diffstat (limited to '')
-rw-r--r--ee1301/wk2/lab2/calc.cpp6
1 files 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;
}