Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef GENERIC_CDB_H
- #define GENERIC_CDB_H
- // include any system header files required for prototypes
- #include <string>
- #include <iostream>
- #include <iomanip>
- #include <climits>
- using namespace std;
- // function prototypes placed here
- // Takes a character from the user, validates and returns a character.
- char getChoice(string prompt, char char1, char char2);
- // Takes an integer, validates and returns the integer.
- int readInt(string errorMsg, int min, int max);
- // Validates a decimal and will test to see if the users inputed double is valid
- double readDouble(string errorMsg, double min, double max);
- // Takes the users input and rounds it to the decimal place the user inputs.
- double round(double userWhole, int userDecimal);
- // Gets passed an array and displays its contents.
- void displayArray(const int array[], const int size);
- // Copies values from one array to another array.
- int copyArray(int numbers2[], const int numbers1[], const int size);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment