From bd1bec7e68837bb7dc2ddce510433b8f0fbdb44c Mon Sep 17 00:00:00 2001 From: WiserJ Date: Tue, 2 Nov 2021 15:53:40 -0700 Subject: done 273 --- CST116F2021-Lab5/p260.cpp | 53 +++++++++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 18 deletions(-) (limited to 'CST116F2021-Lab5/p260.cpp') 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 -- cgit v1.2.3