diff options
author | RossTheRoss <msattr@gmail.com> | 2019-02-07 19:28:41 +0000 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-02-07 19:28:41 +0000 |
commit | a95f318069c22a9507bf3c49e66f92c064232c2e (patch) | |
tree | 5b64adccb9c97321d0dcabe4f572ecfefb81d937 | |
parent | AHHHHHHHHHHHHHH (diff) | |
download | homework-a95f318069c22a9507bf3c49e66f92c064232c2e.tar homework-a95f318069c22a9507bf3c49e66f92c064232c2e.tar.gz homework-a95f318069c22a9507bf3c49e66f92c064232c2e.tar.bz2 homework-a95f318069c22a9507bf3c49e66f92c064232c2e.tar.lz homework-a95f318069c22a9507bf3c49e66f92c064232c2e.tar.xz homework-a95f318069c22a9507bf3c49e66f92c064232c2e.tar.zst homework-a95f318069c22a9507bf3c49e66f92c064232c2e.zip |
AHHHHHHH Why is this so hard
-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; } |