Benjamin

静以修身,俭以养德,非澹薄无以明志,非宁静无以致远。
随笔 - 386, 文章 - 0, 评论 - 196, 引用 - 0
数据加载中……

C/C++

sys/syscall.h No such file Cygwin
     摘要: sys/syscall.h No such file Cygwin   阅读全文

posted @ 2022-12-08 14:41 Benjamin 阅读(454) | 评论 (0)  编辑

C++ 用libcurl库设置http验证
     摘要: curl库的CURLOPT_HTTPAUTH用法(c/c++)  阅读全文

posted @ 2022-02-25 22:47 Benjamin 阅读(937) | 评论 (0)  编辑

vs2019c++中如何调试python代码
     摘要: vs2019c++中如何调试python代码  阅读全文

posted @ 2021-01-28 17:11 Benjamin 阅读(1254) | 评论 (0)  编辑

linux 更改时区
     摘要: 获取时区的代码,根据时区即可换算GMT时间到本地时间。  阅读全文

posted @ 2018-12-02 00:17 Benjamin 阅读(474) | 评论 (0)  编辑

c++和closure(闭包)
     摘要: c++如何实现闭包  阅读全文

posted @ 2018-05-27 18:17 Benjamin 阅读(655) | 评论 (0)  编辑

c++ 执行mysql的存储过程
     摘要: c++代码 执行mysql的存储过程及多条sql语句  阅读全文

posted @ 2018-02-01 13:54 Benjamin 阅读(1328) | 评论 (0)  编辑

c++ 字符串工具类
     摘要: c++字符串工具类  阅读全文

posted @ 2017-05-25 09:59 Benjamin 阅读(1186) | 评论 (0)  编辑

lua中如何使用tinyxml
     摘要: 如何在lua中使用tinyxml库来解析xml  阅读全文

posted @ 2014-08-13 22:52 Benjamin 阅读(1699) | 评论 (0)  编辑

VS2012 error C2664: “std::make_pair”:无法将左值绑定到右值引用
     摘要: c++11的std::make_pair中的error C2664无法将左值绑定到右值引用的解决方法  阅读全文

posted @ 2013-11-14 09:34 Benjamin 阅读(3090) | 评论 (0)  编辑

tcp中的粘包、半包的处理方法
     摘要: tcp中的粘包、半包的c/c#处理方法  阅读全文

posted @ 2013-09-22 21:22 Benjamin 阅读(4905) | 评论 (0)  编辑

linux下的log4cplus应用
     摘要: linux下如何使用log4cplus库来写日志文件  阅读全文

posted @ 2011-11-04 13:46 Benjamin 阅读(1696) | 评论 (0)  编辑

c++释放python解释器资源出现KeyError(139794974959392,) in ignored的解决方法
     摘要: Exception KeyError: KeyError(139794974959392,) in ignored的解决方法  阅读全文

posted @ 2011-10-25 19:17 Benjamin 阅读(1151) | 评论 (1)  编辑

根据特定分割符拆分字符串、判断字符串是否为IP
     摘要: 根据特定分割符拆分字符串、判断字符串是否为IP  阅读全文

posted @ 2011-04-26 20:38 Benjamin 阅读(1638) | 评论 (0)  编辑

指针和地址
     摘要: 通过代码理解代码和指针的关系  阅读全文

posted @ 2011-03-30 21:41 Benjamin 阅读(502) | 评论 (0)  编辑

C++之Destructors(析构函数)
     摘要: C++相关析构函数  阅读全文

posted @ 2010-11-26 00:18 Benjamin 阅读(971) | 评论 (1)  编辑

C语言中difftime函数如何使用time_t*
     摘要: C语言的difftime使用time_t*的方法  阅读全文

posted @ 2010-10-28 20:55 Benjamin 阅读(6353) | 评论 (0)  编辑

自定义的stack、Queue、HashTable、Arraylist类
     摘要: 实现了其中大部分的功能  阅读全文

posted @ 2010-10-18 22:58 Benjamin 阅读(1270) | 评论 (0)  编辑

标准C---关于字符串操作
     摘要: 标c中常用的字符串查找函数和相关注意事项  阅读全文

posted @ 2010-07-28 21:10 Benjamin 阅读(720) | 评论 (6)  编辑

标C中空宏的妙用
     摘要: C语言中的空宏的妙用  阅读全文

posted @ 2010-06-06 00:19 Benjamin 阅读(4607) | 评论 (4)  编辑

内存池和placement new(布局new)
     摘要: 用placement new创建的内存池  阅读全文

posted @ 2010-05-17 22:35 Benjamin 阅读(3503) | 评论 (2)  编辑

C++之构造函数(Constructors)和static
     摘要: C++的Constructors和static  阅读全文

posted @ 2010-05-08 22:27 Benjamin 阅读(1424) | 评论 (0)  编辑

探究C++编译器返回值优化
     摘要: C++编译器返回值优化实质还是指针  阅读全文

posted @ 2010-05-08 19:21 Benjamin 阅读(1066) | 评论 (0)  编辑

C代码--求正弦/余弦、对数
     摘要: 计算正弦、余弦、对数的C代码,精度有四位  阅读全文

posted @ 2010-03-25 23:20 Benjamin 阅读(1240) | 评论 (0)  编辑

C++基本概念之构造函数(constructor)(一)
     摘要: C++中的构造函数(一)  阅读全文

posted @ 2009-12-05 01:41 Benjamin 阅读(3046) | 评论 (0)  编辑

标准C++中的数字和字符串间的转换
     摘要: 标准C++中的数字和字符串间的转换  阅读全文

posted @ 2009-11-01 11:14 Benjamin 阅读(2792) | 评论 (2)  编辑

深度理解C++概念之继承(三)
     摘要: 实际使用继承中的一些错误提示及产生原因  阅读全文

posted @ 2009-07-05 18:28 Benjamin 阅读(379) | 评论 (0)  编辑

深度理解C++概念之继承(一)
     摘要: 使用protected virtuals 替代public virtuals,基类非虚函数调用调用虚函数的使用环境  阅读全文

posted @ 2009-07-02 22:44 Benjamin 阅读(544) | 评论 (0)  编辑

C++之virtual functions(虚函数)实现细节及相关概念
     摘要: C++虚函数实现细节及相关概念  阅读全文

posted @ 2009-06-13 17:38 Benjamin 阅读(2435) | 评论 (0)  编辑

混用C和C++代码
     摘要: 如何混用C和C++代码  阅读全文

posted @ 2009-06-06 16:40 Benjamin 阅读(2027) | 评论 (1)  编辑

virtual friend的实现
     摘要: virtual friend的实现  阅读全文

posted @ 2009-06-03 22:40 Benjamin 阅读(497) | 评论 (0)  编辑

看似简单,其实确并不简单的一道C测试题
     摘要: 一道看似简单,其实并不简单的C测试题  阅读全文

posted @ 2009-05-25 21:44 Benjamin 阅读(312) | 评论 (0)  编辑

设计模式之Builder模式
     摘要: 设计模式之Builder模式  阅读全文

posted @ 2009-04-23 22:34 Benjamin 阅读(384) | 评论 (0)  编辑

如何实现虚构造
     摘要: 模拟虚构造函数的实现  阅读全文

posted @ 2009-04-19 22:18 Benjamin 阅读(429) | 评论 (2)  编辑

设计模式之factory工厂模式(三):Abstract Factory抽象工厂模式
     摘要: Abstract Factory抽象工厂模式  阅读全文

posted @ 2009-04-14 22:04 Benjamin 阅读(393) | 评论 (1)  编辑

设计模式之factory工厂模式(二):polymorphic factory多态工厂
     摘要: polymorphic factory多态工厂  阅读全文

posted @ 2009-04-13 23:05 Benjamin 阅读(392) | 评论 (0)  编辑

设计模式之工厂(factory)模式(一)
     摘要: 工厂(factory)模式(一)  阅读全文

posted @ 2009-04-12 16:37 Benjamin 阅读(335) | 评论 (0)  编辑

设计模式之Strategy模式和Chain of Responsility职责链模式
     摘要: Strategy模式和Chain of Responsility职责链模式  阅读全文

posted @ 2009-04-12 15:32 Benjamin 阅读(371) | 评论 (0)  编辑

设计模式之Adapter模式和Template Method模式
     摘要: 设计模式中Adapter模式和Template Mohtod  阅读全文

posted @ 2009-04-12 14:02 Benjamin 阅读(270) | 评论 (0)  编辑

设计模式之Proxy模式和State模式
     摘要: Proxy模式与State模式  阅读全文

posted @ 2009-04-12 12:31 Benjamin 阅读(506) | 评论 (0)  编辑

设计模式之command模型
     摘要: comman设计模式  阅读全文

posted @ 2009-04-12 08:24 Benjamin 阅读(432) | 评论 (0)  编辑

C和C++中的const
     摘要: C和C++中的const  阅读全文

posted @ 2009-04-11 21:57 Benjamin 阅读(339) | 评论 (0)  编辑

设计模式之Singleton(单件)模型
     摘要: Singleton(单件)模型  阅读全文

posted @ 2009-04-09 21:28 Benjamin 阅读(776) | 评论 (0)  编辑

键树介绍及其实现
     摘要: 电信计费中常用的键树介绍及其实现代码  阅读全文

posted @ 2009-03-23 22:34 Benjamin 阅读(1237) | 评论 (0)  编辑

整理的C语言指针测试题
     摘要: 通过这些测试题可以考察我们对C语言指针的掌握程度  阅读全文

posted @ 2009-03-22 12:36 Benjamin 阅读(733) | 评论 (0)  编辑

C++中如何一次性把一个文本文件读到一个string中
     摘要: 如何把一个文本文件一次性读到一个string对象中  阅读全文

posted @ 2009-03-19 21:47 Benjamin 阅读(3234) | 评论 (0)  编辑

C++中的访问控制探究
     摘要: 深入理解C++访问控制机制  阅读全文

posted @ 2009-03-01 10:23 Benjamin 阅读(848) | 评论 (0)  编辑

两个变量,一个地址
     摘要: 实质还是指针和指针所指向地址中的值两个概念的差异  阅读全文

posted @ 2009-01-11 00:40 Benjamin 阅读(711) | 评论 (3)  编辑

C++的memset函数
     摘要: 函数memset的思考  阅读全文

posted @ 2009-01-06 22:48 Benjamin 阅读(18795) | 评论 (0)  编辑

C++中用二维数组传参时形参该怎样写
     摘要: C++中用二维数组做形参的正确用法  阅读全文

posted @ 2008-12-29 18:42 Benjamin 阅读(4244) | 评论 (0)  编辑

杂谈:数组、指针的区别和联系
     摘要: 关于数组、指针  阅读全文

posted @ 2008-08-25 22:20 Benjamin 阅读(329) | 评论 (0)  编辑

C++中的内存区域
     摘要: C++中的四种内存区域划分  阅读全文

posted @ 2008-07-14 22:47 Benjamin 阅读(342) | 评论 (0)  编辑

ifstream与CFile的效率
     摘要: ifstream与CFile的效率  阅读全文

posted @ 2008-07-13 17:51 Benjamin 阅读(3676) | 评论 (3)  编辑