- 博客(5)
- 收藏
- 关注
原创 函数指针动态绑定
函数指针动态绑定一个类通过不同的初始化参数来实例成不同的类#include "stdafx.h"#include <iostream>#include <assert.h>using namespace std;class ClassFun;typedef void (ClassFun::*FunMake)();class ClassFun{public: enum Main
2017-05-08 23:16:03
606
原创 python嵌入C++代码中
准备工作注意64位和32位的python版本,对应到VS的项目中,也应当使用x64或者x86*配套。 - **下载**python35的64位版本并安装。 - 配置python的环境变量:个人喜欢把默认添加的系统变量改为一个变量名%PY,地址一般是C:\Users\Administrator\AppData\Local\Programs\Python\Python35。使用VS2015新建项目测
2017-05-06 01:35:31
754
原创 qmake使用
qmake使用编写如下脚本hello.pro CONFIG += debug HEADERS += hello.h SOURCES += hello.cpp SOURCES += main.cpp win32 { SOURCES += hellowin.cpp } unix { SOURCES += hellounix.cpp } !ex
2017-05-06 00:54:13
473
原创 Qt多级解析Json文件
Qt多级解析Json文件Json文件范本我要从下面的文件中解析Cmd1中的Name中的值{ "CommandFamily": { "Name": "自定义指令集", "Cmd1": { "Name": "07", "Value": "hello world" }, "Cmd2":
2016-08-17 15:17:01
3440
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人