My Window,Your Bridge!

关于技术,关于生活!



模仿Linux下的cal 程序


命令行下的calendar工具

[code]

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
/****************************
 ...

C hash结构的实现.


非同步的hash结构的简单实现。

根据不同的key用hash函数计算出在数组中的位置,数组中保存的是一个链表结构的结构,不同key在hash值相同的情况下,可以用链表来控制在内存中的位置。

hashtable.h文件.

[cod...

C trim replace函数


[code]
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
/*****************************
 * 去掉字符串两头的空格,\t,\r,\n字符
 * 
 * 对输入的...
分页:

Powered By O-Blog | Template Modified By FengSe

Copyright 2003-2007 ZhangLiHai.Com.All Rights Reserved.