diff options
| author | Joseph Ten Eyck <[email protected]> | 2021-11-10 23:59:32 -0800 |
|---|---|---|
| committer | Joseph Ten Eyck <[email protected]> | 2021-11-10 23:59:32 -0800 |
| commit | 602385edd1cfb892e27e2a85c03f2dd1910308de (patch) | |
| tree | 02ab8065b57250917c82038495a7934f8b8f4dc0 /CST116F2021-Lab6/Header.h | |
| parent | Add online IDE url (diff) | |
| download | cst116-lab6-josephteneyck-602385edd1cfb892e27e2a85c03f2dd1910308de.tar.xz cst116-lab6-josephteneyck-602385edd1cfb892e27e2a85c03f2dd1910308de.zip | |
Last problem is giving me trouble. I am pushing what I have before midnight so I have something to turn in by then.
Diffstat (limited to 'CST116F2021-Lab6/Header.h')
| -rw-r--r-- | CST116F2021-Lab6/Header.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/CST116F2021-Lab6/Header.h b/CST116F2021-Lab6/Header.h new file mode 100644 index 0000000..3eb3323 --- /dev/null +++ b/CST116F2021-Lab6/Header.h @@ -0,0 +1,35 @@ +//============================================================= +// CODE FOR PROBLEM #1 ON PAGE 282 (LEARN BY DOING) IS BELOW +//============================================================= + +//#include <iostream> +//#include <iomanip> +//#include <string> +// +//using namespace std; +// +//void readData(string[][31], string[][31], int[], float[]); //Takes in user entered data and writes to arrays +// +//void displayData(string[][31], string[][31], int[], float[]); // Displays the data from the arrays in an orderly fashion + + +//==================================================================== +// CODE FOR PROBLEM #1 ON PAGE 292 (PROGRAMMING EXERCISES) IS BELOW +//==================================================================== + +#include <iostream> +#include <string> +#include <cstring> +#include <iomanip> + +using namespace std; + +void displayMenu(int&); //Displays menu choices and takes in user choice + +void processMenuChoice(int); //Process menu choice, calls relevant function + +void isPalindrome(); //Checks whether or not a user input string is a palindrome and displays result + +void isAlphaStr(); //Checks to see if a user input string contains all alphabetic characters or not, displays result + +void countChar(); //Takes in a user input string and a character, counts the frequency of that character within the string, displays result
\ No newline at end of file |