diff options
| author | WiserJ <[email protected]> | 2021-11-02 15:53:40 -0700 |
|---|---|---|
| committer | WiserJ <[email protected]> | 2021-11-02 15:53:40 -0700 |
| commit | bd1bec7e68837bb7dc2ddce510433b8f0fbdb44c (patch) | |
| tree | f4f519c17809f48281a114de521800ca65ad61dc /CST116F2021-Lab5/p260.cpp | |
| parent | 260 (diff) | |
| download | cst116-lab5-jeffwoit-bd1bec7e68837bb7dc2ddce510433b8f0fbdb44c.tar.xz cst116-lab5-jeffwoit-bd1bec7e68837bb7dc2ddce510433b8f0fbdb44c.zip | |
done 273
Diffstat (limited to 'CST116F2021-Lab5/p260.cpp')
| -rw-r--r-- | CST116F2021-Lab5/p260.cpp | 53 |
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 |