C/C++
文章平均质量分 79
LiehChang
这个作者很懒,什么都没留下…
展开
-
函数指针
函数指针--指向函数的指针变量作用1:调用函数2:作为函数的参数声明格式返回类型 (*指针名) (形式参数)如 int (*Function)(int x,int y);例子[cpp] view plaincopy#include typedef int (*Function)(int x,int y); int原创 2014-06-25 22:31:24 · 229 阅读 · 0 评论 -
字符串转换成浮点数的实现
字符串常用的转换函数有atofatoiatolstrtodstrtolstrtoultoascii(将整型数转换成合法的ASCII 码字符)toupper(将小写字母转换成大写字母)tolower(将大写字母转换成小写字母)原创 2014-06-30 13:29:52 · 2815 阅读 · 1 评论 -
各种排序算法的实现
数据类型设置原创 2014-07-05 17:41:36 · 398 阅读 · 0 评论 -
哈夫曼树以及哈夫曼编码的实现
typedef struct{ unsigned int weight; unsigned int parent,lchild,rchild;}HTNode,*HuffmanTree;typedef char **HuffmanCode;void HuffmanCoding(HuffmanTree &ht,HuffmanCode &hc,int *w,int n);v原创 2014-07-06 18:56:09 · 507 阅读 · 0 评论