自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 链式哈希表的实现

哈希算法一般用于快速查找和加密算法chtbl.h#ifndef CHTBL_H #define CHTBL_H#include <stdlib.h>#include "list.h"/* Define a structure for chained hash tables. */typedef struct CHTbl_ {int buckets;int

2016-11-26 19:38:23 1350

原创 集合的实现

set.h#ifndef set_h #define set_h#include <stdio.h> #include "list.h"/*Implement sets as linked lists. */ typedef List Set;/* Public Interface. */ void set_init(Set *set, int (*match)(const void *key1,

2016-11-23 15:36:41 249

原创 单链表的实现

list.h#ifndef list_h #define list_h#include <stdlib.h> /** Define a structrue for linked list elements. */ typedef struct ListElmt_ { void *data; struct ListElmt_ *next; } ListElmt; /** Defi

2016-11-16 22:51:53 224

原创 memcpy函数 & 使用泛型指针交换任何类型数据

memcpy函数源码void *memcpy(void *dest,void *src, unsigned int count) { if (dest == src) return src; char* d = (char*)dest; char* s = (char*)src; while(count-- > 0) *d++ = *s++

2016-11-09 10:05:39 1105

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除