From 6c83506cb44b1d20f66df404f0b6468b0e291b6b Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 25 Jun 2019 17:55:13 -0500 Subject: Do a thing: --- ee1301/wk1/lab1/strap012_lab1_c_2.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'ee1301/wk1/lab1/strap012_lab1_c_2.cpp') diff --git a/ee1301/wk1/lab1/strap012_lab1_c_2.cpp b/ee1301/wk1/lab1/strap012_lab1_c_2.cpp index c2b3893..40d13fe 100644 --- a/ee1301/wk1/lab1/strap012_lab1_c_2.cpp +++ b/ee1301/wk1/lab1/strap012_lab1_c_2.cpp @@ -1,13 +1,13 @@ -#include -#include -using namespace std; - -int main() -{ - string first, last; - cout << "What is your full name?" << endl; - getline (cin,first); - //cin.ignore(); - getline (cin,last); - cout << last << ", " << first << endl; -} +#include +#include +using namespace std; + +int main() +{ + string first, last; + cout << "What is your full name?" << endl; + getline (cin,first); + //cin.ignore(); + getline (cin,last); + cout << last << ", " << first << endl; +} -- cgit v1.2.3