/***************************************** * Instructions * - Replace 'uwuserid' with your uWaterloo User ID * - Select the current calendar term and enter the year * - List students with whom you had discussions and who helped you * * uWaterloo User ID: uwuserid @uwaterloo.ca * Submitted for ECE 250 * Department of Electrical and Computer Engineering * University of Waterloo * Calender Term of Submission: (Winter|Spring|Fall) 201N * * By submitting this file, I affirm that * I am the author of all modifications to * the provided code. * * The following is a list of uWaterloo User IDs of those students * I had discussions with in preparing this project: * - * * The following is a list of uWaterloo User IDs of those students * who helped me with this project (describe their help; e.g., debugging): * - *****************************************/ #ifndef DYNAMIC_LINEAR_HASH_TABLE_H #define DYNAMIC_LINEAR_HASH_TABLE_H #ifndef nullptr #define nullptr 0 #endif #include "Exception.h" #include class Dynamic_linear_hash_table { private: int count; int initial_capacity; int current_capacity; int *array; public: Dynamic_linear_hash_table( int = 3 ); ~Dynamic_linear_hash_table(); int size() const; bool empty() const; int capacity() const; bool member( int ) const; int bin( int ) const; double load_factor() const; void insert( int const & ); bool remove( int const & ); void clear(); // Friends friend std::ostream &operator<<( std::ostream &, Dynamic_linear_hash_table const & ); }; // Your implementation here... // Hint: start by creating the signatures like the previous projects... // You can modify this function however you want: it will not be tested std::ostream &operator<<( std::ostream &out, Dynamic_linear_hash_table const &list ) { // Do whatever you want to print it out return out; } // Is an error showing up in ece250.h or elsewhere? // Did you forget a closing '}' ? #endif