![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
语言基础
大脸猫脸大
这个作者很懒,什么都没留下…
展开
-
树结构的遍历
#include #include #include #include #include using namespace std;class CNode{public: CNode(CNode *pNode, const char *pStr) { m_pParent = pNode; m_strName = pStr; if ( m_pParent!=NULL)原创 2013-08-26 11:39:59 · 675 阅读 · 0 评论 -
memset的误区
int a[20] = {1}; for (int i=0; i<20; i++) { a[i] = i; } for (int i=0; i<20; i++) { printf("%d\t", a[i]); } printf("开始清空\t"); memset(a, 0, 20*sizeof(int)); // 20 个元素所占的空间大小 mems原创 2013-08-26 12:21:44 · 645 阅读 · 0 评论 -
PHP之php_curl.dll错误解决方法
Windows下面php5找不到php_curl.dll的问题由于要用到Curl,所以设置的时候提示这样的错误:unable to load dynamic library ‘….php_curl.dll’我的环境是Apache/2.2.14 (Win32) PHP/5.3.0,按理说php5的安装是很简单的,直接指定extension_dir = “c:/php523/ext转载 2015-10-12 16:49:33 · 1664 阅读 · 0 评论 -
英文单词
delimiter英[dɪ'lɪmɪtə]美[dɪ'lɪmɪtə]n.定界符,分隔符;2. wildcard 通配符原创 2018-02-11 00:34:24 · 346 阅读 · 0 评论 -
php 小程序开发总结
1. 金额统计: /** * 获取购物车商品总金额 */ getTotalMoneyInCart: function () { var totalMoney = 0; var cart = getApp().globalData.cart; for (var idx in cart) { var i...原创 2018-03-16 15:35:54 · 664 阅读 · 0 评论 -
css
1 . 样式表:video { width:300px; height:225px; display:inline-block; line-height:0; overflow:hidden; position:relative;}对其中的display, line-height overflow positon 不明白。先做下记录。video { wid...原创 2018-03-22 11:45:42 · 114 阅读 · 0 评论 -
设计模式 命令模式
命令模式interface Command{ public function execute();}class Light{ public function on() { echo "on"; }}class SimpleRemoteControl{ private $slot = null; public...原创 2018-11-05 01:40:13 · 164 阅读 · 0 评论