aboutsummaryrefslogtreecommitdiff
path: root/mod_10b/source.cpp
diff options
context:
space:
mode:
authortill-t <[email protected]>2021-11-02 23:19:57 -0700
committertill-t <[email protected]>2021-11-02 23:19:57 -0700
commitefb5378904d824407e24247b19fdeb4f0eea9475 (patch)
tree91810de53de404cc3af99144f81e02e5512408e7 /mod_10b/source.cpp
parentFolder for last lab question. Incomplete. (diff)
downloadarchived-cst116-lab5-till-t-efb5378904d824407e24247b19fdeb4f0eea9475.tar.xz
archived-cst116-lab5-till-t-efb5378904d824407e24247b19fdeb4f0eea9475.zip
update
Diffstat (limited to 'mod_10b/source.cpp')
-rw-r--r--mod_10b/source.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/mod_10b/source.cpp b/mod_10b/source.cpp
index 5a18cd2..3c6b551 100644
--- a/mod_10b/source.cpp
+++ b/mod_10b/source.cpp
@@ -1 +1,18 @@
-source
+/*Tyler Taormina
+ * Source.cpp
+ */
+#include "source.h"
+
+vold getFullName(char& first, char& last, char& full)
+{
+ cout<<"Please enter your First name: ";
+ cin.getline ( first, 50 );
+ cout<<"Enter your last name: ";
+ cin.getline ( last, 50 );
+ full[0] = '\0'; // strcat searches for '\0' to cat after
+ strcat ( full, first); // Copy name into full name
+ strcat ( full, " " ); // We want to separate the names by a space
+ strcat ( full, last); // Copy lastname onto the end of fullname
+ cout<<"Your full name is "<< full <<"\n";
+ cin.get();
+}