代码改变世界

随笔档案-2010年11月

Publish 提示与目标版本不同

2010-11-28 11:13 by Loning, 299 阅读, 收藏,
摘要: 注意发布的时候是不是换平台了,x86跟any cpu是不一样的。。 阅读全文

C++关闭在debug模式下的“Microsoft Visual C++ Debug Library”对话框

2010-11-27 23:41 by Loning, 2703 阅读, 收藏,
摘要: 引用#include<Crtdbg.h>在main函数中_CrtSetReportMode(_CRT_ASSERT,0); 阅读全文

Qt 中Enum进行反射来做Enum to QString

2010-11-24 22:37 by Loning, 1415 阅读, 收藏,
摘要: i assume you wanttoretrieve a QMetaEnumfor a particularenumwhich is registered withQ_ENUMS.let {class} denote the QObject-derived class which contains theenum, and let {enumName} denote the name of theenum. the following code gets you theenum's QMetaEnum:QMetaObject metaObject = {class}.staticMe 阅读全文

我的OO实践---由GPS消息处理抽象出一通用命令处理类

2010-11-02 09:39 by Loning, 2119 阅读, 收藏,
摘要: 实验要求(1)综合运用以前学到的控制语句、继承、封装、接口等知识,完成具有实际运用功能的程序。(2)通过运用学过的知识进一步的巩固和掌握学到的知识。实验内容使用GPS GATE软件模拟GPS卫星发出的GPS信号,编写程序对GPS GATE发出的信息进行接收、解析、处理。将处理好的信息按照固定的格式存储至文件中(经度、纬度、时间、速度、高度)。下面是主要用到的GPS信息的格式:1. GPS/TRAN... 阅读全文