블로그
- 해쉬함수 체이닝, 삽입,탐색,삭제 CRT_SECURE_NO_WARNINGS #include #include #include #define KEY_SIZE 10 #define TABLE_SIZE 13 #define empty(e) (strlen TABLE_SIZE]; /* void init_table(element ht[]) { int i; for (i = 0; i < TABLE_SIZE; i++) { ht[i].key[0] = NULL
- 해쉬 선형 조사법 프로그램, 삽입,탐색,삭제 TABLE_SIZE]; void init_table(element ht[]) { int i; for (i = 0; i < TABLE_SIZE; i++) { ht[i].key[0] = NULL number; } int hash_function(char *key) { return transform(key) % TABLE_SIZE; } #define empty(e) (strlen
- C언어로 Trim 구현 str) return NULL; if(! */ while(isspace(*str) || ',' == (*str)) str++; /* right trim */ /* ========== */ p_back = str + strlen