From a95f318069c22a9507bf3c49e66f92c064232c2e Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 7 Feb 2019 19:28:41 +0000 Subject: AHHHHHHH Why is this so hard --- ee1301/wk1/lab1/strap012_lab1_c_2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ee1301/wk1') diff --git a/ee1301/wk1/lab1/strap012_lab1_c_2.cpp b/ee1301/wk1/lab1/strap012_lab1_c_2.cpp index c39a0c5..c2b3893 100644 --- a/ee1301/wk1/lab1/strap012_lab1_c_2.cpp +++ b/ee1301/wk1/lab1/strap012_lab1_c_2.cpp @@ -6,8 +6,8 @@ int main() { string first, last; cout << "What is your full name?" << endl; - getline - cin >> last; - cout << last << ", " << first << - } + getline (cin,first); + //cin.ignore(); + getline (cin,last); + cout << last << ", " << first << endl; } -- cgit v1.2.3