摘要: class Superman { protected $module; function __construct(PowerModule $PowerModule,array $arr) { $this->module = $PowerModule; echo "Superman is ready. 阅读全文
posted @ 2020-06-10 17:53 花兮 阅读(171) 评论(0) 推荐(0) 编辑
摘要: /* *$sourePic:原图路径 * $smallFileName:小图名称 * $width:小图宽 * $heigh:小图高 * 转载注明 www.chhua.com*/ function pngthumb($sourePic,$smallFileName,$width,$heigh){ $ 阅读全文
posted @ 2020-06-10 17:52 花兮 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 1 绝对路径、相对路径和未确定路径 相对路径 相对路径指以.开头的路径,例如 ./a/a.php (相对当前目录) ../common.inc.php (相对上级目录), 绝对路径 绝对路径是以 / 开头或者windows下的 C:/ 类似的盘符开头的路径,全路径不用任何参考路径就可以唯一确定文件的 阅读全文
posted @ 2020-06-10 17:50 花兮 阅读(940) 评论(0) 推荐(0) 编辑
摘要: var hash; hash=(!window.location.hash)?"#tab_1":window.location.hash; window.location.hash=hash; 阅读全文
posted @ 2018-06-05 15:57 花兮 阅读(443) 评论(0) 推荐(0) 编辑
摘要: sqlist.h sqlist.c main.c 阅读全文
posted @ 2018-05-14 18:41 花兮 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 主要有两种方式:利用友元、类成员方法。 #include using namespace std; /** *演示修饰符重载 *一般都用成员方法重载 *特殊的没有办法修改核心库的用友元的方法来重载 例如weight = weight; } ~Chicken() { delete this; } int getWeight(); ... 阅读全文
posted @ 2018-04-24 17:29 花兮 阅读(327) 评论(0) 推荐(0) 编辑
摘要: cfg.h cfg.cpp main.cpp 阅读全文
posted @ 2018-03-29 15:06 花兮 阅读(10283) 评论(0) 推荐(1) 编辑
摘要: #include #include #include //定义类型 typedef struct Stlianbiao { char name[20]; struct Stlianbiao *next; }SLB; void createLB(SLB **head) { //定义辅助指针 SLB *p = NULL; SLB *cur = N... 阅读全文
posted @ 2018-03-09 17:22 花兮 阅读(226) 评论(0) 推荐(0) 编辑
摘要: #include #include #include int handleIni(void **handle/*Out*/); int socketSend(void *handle/*in*/, char *msg/*in*/, int len/*in*/); int socketReci(void *handle/*in*/, char *msg/*out*/, int *len/*... 阅读全文
posted @ 2018-03-03 15:49 花兮 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 头文件:Cfg.h 实现文件:Cfg.c 测试文件:file.c 阅读全文
posted @ 2018-03-01 16:28 花兮 阅读(361) 评论(0) 推荐(0) 编辑