diff options
Diffstat (limited to 'ee1301/wk1')
-rw-r--r-- | ee1301/wk1/lab1/strap012_lab1_c_2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |