导航

2013年8月10日

摘要: 深度优先的遍历网上一大把,就是递归调用,这里就不说了,说点网上找不到的。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 typedef int8_t (__stdcall *P_WALKDIR_CALLBACK)(const char *In_pcFilePath); 9 10 int8_t WalkDir(const char *In_pcRootDir, P_WALKDIR_CALLBACK In_pfunCallBack)11 {12 int8_t i8R... 阅读全文

posted @ 2013-08-10 18:37 codeape 阅读(1201) 评论(0) 推荐(0) 编辑

摘要: 上代码之前先讲个笑话:曾经有位面试官问:“你实现过 唉踢哦诶(音) 吗”? 我第一个想到的是各种OA系统,心想那玩意不多是Java实现的吗。。。过一会想明白了,瞬间石化。。。 1 #include 2 #include 3 4 int8_t Myitoa(int64_t In_i64SrcNum, uint8_t In_i8Radix, char *In_pcDst) 5 { 6 int8_t i8RetVal = 0; 7 //这里强转是为了2、8、16进制显示的时候不需要符号 8 uint64_t ui64SrcNum = (uint... 阅读全文

posted @ 2013-08-10 00:05 codeape 阅读(670) 评论(0) 推荐(0) 编辑