#include #include #define M 11 struct node{ char key; }; void hashinitialize(void); void hashinsert(char v); int hash(char c); int hash2(char c); void hashprint(void); struct node a[M]; int main(){ char c; hashinitialize(); printf("Input data: "); while( 1 ){ c = getchar(); if( c == '\n' ){ break; } hashinsert(c); hashprint(); } return 0; } void hashinitialize(void){ int i; for( i=0; i