/* * Code modified from Weiss Textbook: http://users.cis.fiu.edu/~weiss/dsaa_c++/Code * Version author: A. Kalyanaraman * Date: 11/22/2011 * For use in Cpt S 223, School of EECS, WSU */ #ifndef GLOBAL_FUNCTIONS_H_ #define GLOBAL_FUNCTIONS_H_ #include #include using namespace std; bool isPrime( int n ); int nextPrime( int n ); int hash( const string & key, int tableSize ); int hash( int key, int tableSize ); #endif