01 2015 档案

摘要:1 二维数组与指针(*)2 KMP算法:http://blog.csdn.net/v_july_v/article/details/70418273 计算机网络术语通俗解释:http://www.pconline.com.cn/pcedu/teach/base/0708/1080827.html 子... 阅读全文
posted @ 2015-01-23 22:12 Daringoo 阅读(178) 评论(0) 推荐(0)
摘要:1 普通数组这里设置的是静态数组,静态数组的创建非常方便,使用完也无需释放,要引用也简单,但是创建后无法改变其大小是其致命弱点!解决方法可使用动态数组,但动态数组就要注意了,对于动态数组,其创建麻烦,使用完必须由程序员自己释放,否则严重会引起内存泄露。不过动态数组使用非常灵活,能根据程序需要动态分配... 阅读全文
posted @ 2015-01-21 16:42 Daringoo 阅读(839) 评论(0) 推荐(0)
摘要:localtime 和 localtime_s:localtime:localtime(const time_t * _Time)time_t t;struct tm *local;time(&t);local=localtime(&t);localtime_s:localtime_s(struct... 阅读全文
posted @ 2015-01-17 17:20 Daringoo 阅读(199) 评论(0) 推荐(0)
摘要:首先定义一个两个数对换的函数——swapvoid swap(int *a1, int *a2){ int tmp; tmp = *a1; *a1 = *a2; *a2 = tmp;}View Code1 插入排序:有一个已经有序的数据序列,要求在这个已经排好的数据序列中插入一... 阅读全文
posted @ 2015-01-14 21:58 Daringoo 阅读(219) 评论(0) 推荐(0)