本程序使用了一些对目录进行操作的函数编写了一个遍历文件层次结构的程序,最后对各种类型的文件计数。这个程序只有一个参数,它说明起点路径名,从该点开始递归降序遍历文件层次结构。其中还用到了一个为路径名动态分配存储区的函数path_alloc。
// ftw.c
// 2015-08-18 Lucifer Zhang
// Recursively descend a directory hier...
分类:
其他好文 时间:
2015-08-18 21:29:05
阅读次数:
216
/** * 删除图片或文件 * @author Zhenwei Zhang * @param string $pic 图片或文件地址 */function delpic($pic){ if($pic){ $url = strlen('http://'.$_SERVER['HTTP_HOST']......
分类:
Web程序 时间:
2015-08-18 19:03:09
阅读次数:
151
解题报告 之 HDU5294 Tricks Device
Description
Innocent Wu follows Dumb Zhang into a ancient tomb. Innocent Wu’s at the entrance of the tomb while Dumb Zhang’s at the end of it. The tomb is made up of many chambers, the total number is N. And there are M channe...
分类:
其他好文 时间:
2015-08-16 13:49:52
阅读次数:
117
这是第二次写这道题的题解了,上次是用树状数组写的。
http://blog.csdn.net/zhang_xueping/article/details/47123951
虽然在去年暑假的时候曾经试过学习线段树,但是后来由于觉得麻烦所以放弃了,碰巧遇到这道题,就百度找题解,发现树状数组的代码简单多了,就认真看了几遍,大概把模板记住了,然后自己敲出来了。当时特开心,天真的以为线段树的...
分类:
其他好文 时间:
2015-08-15 12:05:42
阅读次数:
122
推荐 :http://www.cnblogs.com/Peter-Zhang/archive/2011/10/22/2221147.htmleg: 1 $("#txtGrand").autocomplete("/AjaxHandlers/StudentContractHandler.ashx", {...
分类:
Web程序 时间:
2015-08-14 18:32:32
阅读次数:
142
本文转自:http://blog.csdn.net/chenming_zhang/article/details/70554891、分享第一条经验:“学历代表过去、能力代表现在、学习力代表未来。”其实这是一个来自国外教育领域的一个研究结果。相信工作过几年、十几年的朋友对这个道理有些体会吧。但我相信这...
分类:
其他好文 时间:
2015-08-11 00:04:32
阅读次数:
189
今天来学习一下scala中List的构造和类型约束等内容。让我们来看一下代码package scala.learn/*** @author zhang*/abstract class Big_Dataclass Hadoop extends Big_Dataclass Spark extends B...
分类:
其他好文 时间:
2015-08-10 23:50:41
阅读次数:
148
请看下面代码string AddString(const string& a,const string & b){ return a + b;}int _tmain(int argc, _TCHAR* argv[]){ const char * szA = "Zhang"; con...
分类:
编程语言 时间:
2015-08-08 12:03:30
阅读次数:
196
总算今天静下心来学算法。。DescriptionInnocent Wu follows Dumb Zhang into a ancient tomb. Innocent Wu’s at the entrance of the tomb while Dumb Zhang’s at the end of...
分类:
其他好文 时间:
2015-08-04 20:56:29
阅读次数:
146
原文链接:http://blog.csdn.net/billow_zhang/article/details/4420789在程序的两个模块间进行通讯的时候,缓冲区成为一个经常使用的机制。如上图,写入模块将信息写入缓冲区中,读出模块将信息读出缓冲区。这样使得:将程序清晰地划分模块,建立良好的模块化架...
分类:
其他好文 时间:
2015-08-04 15:14:35
阅读次数:
115