• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 ··· 20 下一页
2018年2月3日
c++ 宏定义调用不定参数的函数
摘要: 假设有一下函数 则宏定义如下 然后调用该函数如下 输出如下 阅读全文
posted @ 2018-02-03 16:16 wjshan0808 阅读(3517) 评论(0) 推荐(0)
C++ 调用Python文件方法传递字典参数并接收返回值
摘要: 首先本地需要安装有Python环境,然后在c++工程中包含Python的头文件,引用Python的lib库。 pyscript.py脚本示例 附加 返回值 Tuple-List 解析 在线文档 https://docs.python.org/ 阅读全文
posted @ 2018-02-03 15:48 wjshan0808 阅读(12135) 评论(0) 推荐(0)
2017年11月30日
ORA-12154: TNS:could not resolve the connect identifier specified. Solved.
摘要: 进入系统属性页面 并添加系统环境变量 其中${path} = 从http://www.oracle.com/technetwork/topics/winx64soft-089540.html 下载的 instantclient-basic-windows.x64-12.2.0.1.0.zip 解压目 阅读全文
posted @ 2017-11-30 15:53 wjshan0808 阅读(291) 评论(0) 推荐(0)
2017年8月11日
rhel7 rpmbuild 制作二进制程序安装包(.rpm) 简单示例
摘要: 下载rpm-build: 如果上述方式无法安装(没配置网络源,虚拟机下是安装媒介源) 可以用下列方式下载后再安装(实践结果可能版本问题引起的缺少太多的*.so,不可行) 使用此方式,配置个可用的RHEL7(=CentOS7)(163)网络源,具体做法 http://mirrors.163.com/. 阅读全文
posted @ 2017-08-11 00:52 wjshan0808 阅读(1657) 评论(0) 推荐(0)
2017年8月1日
C++版的网络数据包解析策略(升级版)
摘要: 初版:http://www.cnblogs.com/wjshan0808/p/6580638.html 说明:在实现了对应的接口后该策略可以适合绝大多数的网络数据包结构 首先,是三个接口 IProduceProxy.h #ifndef _I_PRODUCE_PROXY_H_ #define _I_P 阅读全文
posted @ 2017-08-01 17:16 wjshan0808 阅读(1084) 评论(0) 推荐(0)
2017年7月18日
C++ 自动资源释放的单例模式
摘要: 代码思想就是程序结束时会自动释放静态/全局资源时删除单例资源。 阅读全文
posted @ 2017-07-18 13:51 wjshan0808 阅读(617) 评论(0) 推荐(0)
2017年6月24日
C++ ACE 动态加载链接库
摘要: 添加头文件 定义函数接口 加载动态库(dll/so) 调用动态库函数 阅读全文
posted @ 2017-06-24 14:23 wjshan0808 阅读(963) 评论(0) 推荐(0)
2017年6月22日
Linux下C++动态加载so 调用方法
摘要: Windows 下的 C++动态加载DLL调用方法 文献参考 http://man7.org/linux/man-pages/man0/dlfcn.h.0p.html http://man7.org/linux/man-pages/man3/dlopen.3.html http://tldp.org 阅读全文
posted @ 2017-06-22 13:04 wjshan0808 阅读(13719) 评论(0) 推荐(1)
2017年6月11日
C++ 不定参数"..."的使用
摘要: #include #include #include #define LEN_MSG_BUFFER 128 using namespace std; void Message(int nLevel, const char *szFormat, ...) { char* szData = new char[LEN_MSG_BUFFER](); t... 阅读全文
posted @ 2017-06-11 17:04 wjshan0808 阅读(1153) 评论(0) 推荐(0)
2017年6月10日
rhel7 编写CMakeList.txt编译运行MySQL官方例子代码
摘要: 注:若需要参考rhel7上安装MySQL 请 点击此处 1.下面MySQL链接库版本用到了boost(若需要请到官网下载最新链接库和文档和C++连接数据库操作示例) Red Hat Enterprise Linux 7 / Oracle Linux 7 (x86, 64-bit), Compress 阅读全文
posted @ 2017-06-10 19:01 wjshan0808 阅读(1037) 评论(0) 推荐(0)
2017年6月1日
记录下 rhel 7 安装MySQL 并重置root密码
摘要: 注意官方是很不提倡用root的。 下载并安装MySQL 最新的rpm地址 https://dev.mysql.com/downloads/repo/yum/ 重置root密码 阅读全文
posted @ 2017-06-01 18:35 wjshan0808 阅读(406) 评论(0) 推荐(0)
2017年3月28日
杨辉三角 可以不用二维数组的
摘要: #include #include using namespace std; int main(int argc, char* args[]) { //便于窗体显示 system("mode con cols=128 lines=32"); int nLine; //cin >> nLine; //test nLine = 11... 阅读全文
posted @ 2017-03-28 17:19 wjshan0808 阅读(439) 评论(0) 推荐(0)
2017年3月24日
一个Window/Linux(Fedora测试平台)的CPU,磁盘,内存,PC,进程相关信息采集功能
摘要: 说明:采用的是Multi-Byte Character Set,不支持Unicode。 Peer2PeerData.h #ifndef _PEER_2_PEER_DATA_H #define _PEER_2_PEER_DATA_H #include <cstring> /* unsigned lon 阅读全文
posted @ 2017-03-24 17:15 wjshan0808 阅读(582) 评论(0) 推荐(0)
一个ACE 架构的 Socket Client
摘要: .h .cpp /************************************************************** * Filename: TcpClient.cpp * Copyright: Shanghai X Co., Ltd. * * Description: T 阅读全文
posted @ 2017-03-24 17:02 wjshan0808 阅读(909) 评论(0) 推荐(0)
一个ACE 架构的 C++ Timer
摘要: .h .cpp 阅读全文
posted @ 2017-03-24 16:47 wjshan0808 阅读(596) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 20 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3