From d46b8ac718669d0efb55c204c5681106d991bc08 Mon Sep 17 00:00:00 2001 From: nicksxs Date: Tue, 28 Mar 2023 16:10:57 +0800 Subject: [PATCH] Site updated: 2023-03-28 16:10:55 --- 2014/12/23/my-new-post/index.html | 2 +- 2014/12/24/MFC 模态对话框/index.html | 2 +- 2014/12/30/Clone-Graph-Part-I/index.html | 2 +- 2015/01/04/Path-Sum/index.html | 2 +- 2015/01/14/Two-Sum/index.html | 2 +- .../index.html | 2 +- 2015/03/11/Number-Of-1-Bits/index.html | 2 +- 2015/03/11/Reverse-Bits/index.html | 2 +- 2015/03/13/Reverse-Integer/index.html | 2 +- 2015/04/14/Add-Two-Number/index.html | 2 +- 2015/04/15/Leetcode-No-3/index.html | 2 +- 2015/06/22/invert-binary-tree/index.html | 2 +- 2016/07/13/swoole-websocket-test/index.html | 2 +- 2016/08/14/34-Search-for-a-Range/index.html | 2 +- 2016/08/14/docker-mysql-cluster/index.html | 2 +- 2016/09/29/binary-watch/index.html | 2 +- .../minimum-size-subarray-sum-209/index.html | 2 +- 2016/10/12/summary-ranges-228/index.html | 2 +- .../index.html | 2 +- 2017/03/28/spark-little-tips/index.html | 2 +- 2017/04/25/rabbitmq-tips/index.html | 2 +- 2017/05/09/ambari-summary/index.html | 2 +- 2019/06/18/openresty/index.html | 2 +- .../23/AbstractQueuedSynchronizer/index.html | 2 +- 2019/12/07/JVM-G1-Part-1/index.html | 2 +- 2019/12/10/Redis-Part-1/index.html | 2 +- 2019/12/18/1Q84读后感/index.html | 2 +- .../聊聊Java中的单例模式/index.html | 2 +- 2019/12/26/redis数据结构介绍/index.html | 2 +- .../04/redis数据结构介绍二/index.html | 2 +- .../10/redis数据结构介绍三/index.html | 2 +- .../19/redis数据结构介绍四/index.html | 2 +- .../20/redis数据结构介绍五/index.html | 2 +- .../22/redis数据结构介绍六/index.html | 2 +- 2020/02/01/2019年终总结/index.html | 2 +- 2020/02/09/G1收集器概述/index.html | 2 +- 2020/02/16/Maven实用小技巧/index.html | 2 +- .../index.html | 2 +- 2020/03/01/寄生虫观后感/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../echo命令的一个小技巧/index.html | 2 +- 2020/04/05/Comparator使用小记/index.html | 2 +- 2020/04/12/redis系列介绍七/index.html | 2 +- 2020/04/18/redis系列介绍八/index.html | 2 +- 2020/04/26/聊聊-mysql-的-MVCC/index.html | 2 +- .../聊聊-mysql-的-MVCC-续篇/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2020/05/31/聊聊-Dubbo-的-SPI/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2020/06/21/介绍一下-RocketMQ/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2020/07/11/2020年中总结/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../在老丈人家的小工记三/index.html | 2 +- .../index.html | 2 +- .../在老丈人家的小工记四/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../在老丈人家的小工记五/index.html | 2 +- .../index.html | 2 +- .../index.html | 4 +- .../聊聊-Java-的类加载机制/index.html | 2 +- .../index.html | 2 +- .../聊聊-Dubbo-的容错机制/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2021/01/17/聊聊那些加塞狗/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../07/关于读书打卡与分享/index.html | 2 +- 2021/02/14/AQS篇一/index.html | 2 +- .../AQS-之-Condition-浅析笔记/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../关于公共交通再吐个槽/index.html | 2 +- .../聊聊-Linux-下的-top-命令/index.html | 2 +- 2021/03/31/2020-年终总结/index.html | 2 +- .../04/聊聊-dubbo-的线程池/index.html | 2 +- .../index.html | 2 +- .../rust学习笔记-所有权二/index.html | 2 +- 2021/04/18/rust学习笔记/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../聊聊传说中的-ThreadLocal/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../聊聊SpringBoot-自动装配/index.html | 2 +- 2021/07/18/2021-年中总结/index.html | 2 +- 2021/07/25/redis过期策略复习/index.html | 2 +- 2021/08/01/redis淘汰策略复习/index.html | 2 +- .../index.html | 2 +- .../redis-的-rdb-和-COW-介绍/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../07/聊聊最近平淡的生活/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2022/01/22/2021-年终总结/index.html | 2 +- 2022/01/30/spring-event-介绍/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2022/02/13/Disruptor-系列一/index.html | 2 +- .../聊聊这次换车牌及其他/index.html | 2 +- 2022/02/27/Disruptor-系列二/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2022/03/20/给小电驴上牌/index.html | 2 +- .../index.html | 2 +- .../Dubbo-使用的几个记忆点/index.html | 2 +- 2022/04/10/难得的大扫除/index.html | 2 +- 2022/04/17/nginx-日志小记/index.html | 2 +- 2022/04/24/屯菜惊魂记/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../聊聊我的远程工作体验/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../《长安的荔枝》读后感/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2022/09/25/Disruptor-系列三/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2022/11/13/powershell-初体验/index.html | 2 +- 2022/11/20/powershell-初体验二/index.html | 2 +- 2022/11/27/mybatis系列-入门篇/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../mybatis系列-dataSource解析/index.html | 2 +- 2023/01/15/2022-年终总结/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- 2023/03/05/小工周记一/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../26/ssh-小技巧-端口转发/index.html | 2 +- .../index.html | 2 +- baidusitemap.xml | 66 +- leancloud.memo | 1 + leancloud_counter_security_urls.json | 2 +- search.xml | 20400 ++++++++-------- sitemap.xml | 702 +- 210 files changed, 10792 insertions(+), 10791 deletions(-) diff --git a/2014/12/23/my-new-post/index.html b/2014/12/23/my-new-post/index.html index f8ce604020..d0472eca13 100644 --- a/2014/12/23/my-new-post/index.html +++ b/2014/12/23/my-new-post/index.html @@ -1 +1 @@ -C++ 指针使用中的一个小问题 | Nicksxs's Blog

Nicksxs's Blog

What hurts more, the pain of hard work or the pain of regret?

C++ 指针使用中的一个小问题

在工作中碰到的一点C++指针上的一点小问题


在C++中,应该是从C语言就开始了,除了void型指针之外都是需要有分配对应的内存才可以使用,同时mallocfree成对使用,newdelete成对使用,否则造成内存泄漏。

0%
\ No newline at end of file +C++ 指针使用中的一个小问题 | Nicksxs's Blog

Nicksxs's Blog

What hurts more, the pain of hard work or the pain of regret?

C++ 指针使用中的一个小问题

在工作中碰到的一点C++指针上的一点小问题


在C++中,应该是从C语言就开始了,除了void型指针之外都是需要有分配对应的内存才可以使用,同时mallocfree成对使用,newdelete成对使用,否则造成内存泄漏。

0%
\ No newline at end of file diff --git a/2014/12/24/MFC 模态对话框/index.html b/2014/12/24/MFC 模态对话框/index.html index 6f794e4ef7..255b9367fc 100644 --- a/2014/12/24/MFC 模态对话框/index.html +++ b/2014/12/24/MFC 模态对话框/index.html @@ -4,4 +4,4 @@ int nIndex = m_CbTest.GetCurSel(); m_CbTest.GetLBText(nIndex, m_SrcTest); OnOK(); -}

模态对话框弹出确定后,在弹出对话框时新建的类及其变量会存在,但是对于其中的控件
对象无法调用函数,即如果要在主对话框中获得弹出对话框的Combo box选中值的话,需
要在弹出 对话框的确定函数内将其值取出,赋值给弹出对话框的公有变量,这样就可以
在主对话框类得到值。

0%
\ No newline at end of file +}

模态对话框弹出确定后,在弹出对话框时新建的类及其变量会存在,但是对于其中的控件
对象无法调用函数,即如果要在主对话框中获得弹出对话框的Combo box选中值的话,需
要在弹出 对话框的确定函数内将其值取出,赋值给弹出对话框的公有变量,这样就可以
在主对话框类得到值。

0%
\ No newline at end of file diff --git a/2014/12/30/Clone-Graph-Part-I/index.html b/2014/12/30/Clone-Graph-Part-I/index.html index c75608d951..a64b12003d 100644 --- a/2014/12/30/Clone-Graph-Part-I/index.html +++ b/2014/12/30/Clone-Graph-Part-I/index.html @@ -34,4 +34,4 @@ Node *clone(Node *graph) { } return graphCopy; -}

anlysis

using the Breadth-first traversal
and use a map to save the neighbors not to be duplicated.

0%
\ No newline at end of file +}

anlysis

using the Breadth-first traversal
and use a map to save the neighbors not to be duplicated.

0%
\ No newline at end of file diff --git a/2015/01/04/Path-Sum/index.html b/2015/01/04/Path-Sum/index.html index 3174e12323..3a90b2bea5 100644 --- a/2015/01/04/Path-Sum/index.html +++ b/2015/01/04/Path-Sum/index.html @@ -31,4 +31,4 @@ public: // DO NOT write int main() function return deep_first_search(root, sum, 0); } -};
0%
\ No newline at end of file +};
0%
\ No newline at end of file diff --git a/2015/01/14/Two-Sum/index.html b/2015/01/14/Two-Sum/index.html index dd54a875e2..0b59323578 100644 --- a/2015/01/14/Two-Sum/index.html +++ b/2015/01/14/Two-Sum/index.html @@ -47,4 +47,4 @@ public: } return result; } -};

Analysis

sort the array, then test from head and end, until catch the right answer

0%
\ No newline at end of file +};

Analysis

sort the array, then test from head and end, until catch the right answer

0%
\ No newline at end of file diff --git a/2015/01/16/pcre-intro-and-a-simple-package/index.html b/2015/01/16/pcre-intro-and-a-simple-package/index.html index 52789bc1ee..9cd0163f80 100644 --- a/2015/01/16/pcre-intro-and-a-simple-package/index.html +++ b/2015/01/16/pcre-intro-and-a-simple-package/index.html @@ -15,4 +15,4 @@ int pcre_exec(const pcre *code, const pcre_extra *extra, const char *subject, in vc.push_back(pr); rc = pcre_exec(re, NULL, src, strlen(src), i, 0, ovector, 30); } -}

vector中是全文匹配后的索引对,只是简单地用下。

0%
\ No newline at end of file +}

vector中是全文匹配后的索引对,只是简单地用下。

0%
\ No newline at end of file diff --git a/2015/03/11/Number-Of-1-Bits/index.html b/2015/03/11/Number-Of-1-Bits/index.html index d7c979de06..949f1fb87a 100644 --- a/2015/03/11/Number-Of-1-Bits/index.html +++ b/2015/03/11/Number-Of-1-Bits/index.html @@ -12,4 +12,4 @@ n = (n & m16) + ((n >> 16) & m16); //put count of each 32 bits into those 32 bits return n; -}
0%
\ No newline at end of file +}
0%
\ No newline at end of file diff --git a/2015/03/11/Reverse-Bits/index.html b/2015/03/11/Reverse-Bits/index.html index 89bf57c8aa..d3b2bb8d1d 100644 --- a/2015/03/11/Reverse-Bits/index.html +++ b/2015/03/11/Reverse-Bits/index.html @@ -8,4 +8,4 @@ public: n = ((n >> 16) & 0x0000ffff) | ((n & 0x0000ffff) << 16); return n; } -};
0%
\ No newline at end of file +};
0%
\ No newline at end of file diff --git a/2015/03/13/Reverse-Integer/index.html b/2015/03/13/Reverse-Integer/index.html index 324969b2af..36e5c24eb7 100644 --- a/2015/03/13/Reverse-Integer/index.html +++ b/2015/03/13/Reverse-Integer/index.html @@ -22,4 +22,4 @@ public: } return ret; } -};
0%
\ No newline at end of file +};
0%
\ No newline at end of file diff --git a/2015/04/14/Add-Two-Number/index.html b/2015/04/14/Add-Two-Number/index.html index 48f1a5b0f4..7c24159553 100644 --- a/2015/04/14/Add-Two-Number/index.html +++ b/2015/04/14/Add-Two-Number/index.html @@ -81,4 +81,4 @@ public: } return dummy.next; } -};
0%
\ No newline at end of file +};
0%
\ No newline at end of file diff --git a/2015/04/15/Leetcode-No-3/index.html b/2015/04/15/Leetcode-No-3/index.html index 5bdc55b4df..863073bb62 100644 --- a/2015/04/15/Leetcode-No-3/index.html +++ b/2015/04/15/Leetcode-No-3/index.html @@ -9,4 +9,4 @@ max = i - tail; ct[s[i]] = i; } - return max;
0%
\ No newline at end of file + return max;
0%
\ No newline at end of file diff --git a/2015/06/22/invert-binary-tree/index.html b/2015/06/22/invert-binary-tree/index.html index b3faf91236..28f19fef87 100644 --- a/2015/06/22/invert-binary-tree/index.html +++ b/2015/06/22/invert-binary-tree/index.html @@ -27,4 +27,4 @@ public: root->right = temp; return root; } -};
0%
\ No newline at end of file +};
0%
\ No newline at end of file diff --git a/2016/07/13/swoole-websocket-test/index.html b/2016/07/13/swoole-websocket-test/index.html index a7772bd564..4267d004eb 100644 --- a/2016/07/13/swoole-websocket-test/index.html +++ b/2016/07/13/swoole-websocket-test/index.html @@ -88,4 +88,4 @@ make && make install