aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab5/p260.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116F2021-Lab5/p260.cpp')
-rw-r--r--CST116F2021-Lab5/p260.cpp53
1 files changed, 35 insertions, 18 deletions
diff --git a/CST116F2021-Lab5/p260.cpp b/CST116F2021-Lab5/p260.cpp
index d36cb5d..bef5a3c 100644
--- a/CST116F2021-Lab5/p260.cpp
+++ b/CST116F2021-Lab5/p260.cpp
@@ -1,18 +1,35 @@
-#include "Header1.h"
-
-void GetFirst(char inputFirst[])
-{
- cout << "Please enter your first name: ";
- cin >> inputFirst;
-}
-
-void GetLast(char inputLast[])
-{
- cout << "Please enter your last name: ";
- cin >> inputLast;
-}
-
-void DispName(char outputFirst[], char outputLast[], char outputFull[])
-{
-
-} \ No newline at end of file
+//#include "Header1.h"
+//
+//void GetFirst(char inputFirst[])
+//{
+// cout << "Please enter your first name: ";
+// cin >> inputFirst;
+//}
+//
+//void GetLast(char inputLast[])
+//{
+// cout << "Please enter your last name: ";
+// cin >> inputLast;
+//}
+//
+//void DispName(char outputFirst[], char outputLast[], char outputFull[])
+//{
+// int f = 0, l = 0;
+//
+// while (outputLast[l] != '\0')
+// {
+// outputFull[l] = outputLast[l];
+// l++;
+// }
+//
+// outputFull[l] = ',';
+// outputFull[l + 1] = ' ';
+//
+// while (outputFirst[f] != '\0')
+// {
+// outputFull[f+l+2] = outputFirst[f];
+// f++;
+// }
+//
+// cout << "Your full name is " << &outputFull[0] << '.';
+//} \ No newline at end of file