aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-02-07 19:28:41 +0000
committerRossTheRoss <msattr@gmail.com>2019-02-07 19:28:41 +0000
commita95f318069c22a9507bf3c49e66f92c064232c2e (patch)
tree5b64adccb9c97321d0dcabe4f572ecfefb81d937
parentAHHHHHHHHHHHHHH (diff)
downloadhomework-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.cpp8
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;
}