diff options
| author | James Lawrance <[email protected]> | 2021-11-02 09:40:20 -0700 |
|---|---|---|
| committer | James Lawrance <[email protected]> | 2021-11-02 09:40:20 -0700 |
| commit | c0b1c4b42c21d6397d95d77d322301f8e8f74f5f (patch) | |
| tree | a3bd20cddf82b01e90a39e2c183c259d89c057a8 /CST116F2021-Lab5/CST116F2021-Lab5.cpp | |
| parent | Morning Class Changes 10/30/21 up to 10a (diff) | |
| download | archived-cst116-lab5-jemersonlawrance-c0b1c4b42c21d6397d95d77d322301f8e8f74f5f.tar.xz archived-cst116-lab5-jemersonlawrance-c0b1c4b42c21d6397d95d77d322301f8e8f74f5f.zip | |
Lab 5 Completed
Diffstat (limited to 'CST116F2021-Lab5/CST116F2021-Lab5.cpp')
| -rw-r--r-- | CST116F2021-Lab5/CST116F2021-Lab5.cpp | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/CST116F2021-Lab5/CST116F2021-Lab5.cpp b/CST116F2021-Lab5/CST116F2021-Lab5.cpp index c1b57ec..64e6b3e 100644 --- a/CST116F2021-Lab5/CST116F2021-Lab5.cpp +++ b/CST116F2021-Lab5/CST116F2021-Lab5.cpp @@ -220,17 +220,33 @@ //} //10a -//9.4 Learn by Doing Exercises (this problem will be broken into 3 files) +//9.4 Learn by Doing Exercises (broken into 3 files) -int main() -{ +//int main() +//{ //defining arrays - char firstName[15] = {}; - char lastName[15] = {}; +// char firstName[15] = {}; +// char lastName[15] = {}; //get firstName and lastName (call function getName) - getName(firstName, lastName); +// getName(firstName, lastName); //format full name (call function formatName) - formatName(firstName, lastName); +// formatName(firstName, lastName); - return 0; +// return 0; +//} + +//10b +//9.5 Learn by Doing Exercises (broken into 3 files) + +int main() +{ + //defining arrays + char firstString[30] = {}; + char secondString[30] = {}; + //greeting + cout << "Welcome to the string first six character comparison program.\n"; + //get string inputs (call function getStrings) + getStrings(firstString, secondString); + //compare string inputs (call function compareStrings) + compareStrings(firstString, secondString); }
\ No newline at end of file |