摘要: for(iterator it = begin(); it != end(); ++it)for(iterator it = begin(); it != end(); it++)两种方式iterator遍历的次数是相同的,但在STL中效率不同,前++--返回引用,后++--返回一个临时对象,因为iterator是类模板,使用it++这种形式要返回一个无用的临时对象,而it++是函数重载,所以编译...阅读全文
07 2010 档案
摘要: 2009-02-10 作者: infobillows 来源:网络在将一个C源程序转换为可执行程序的过程中, 编译预处理是最初的步骤. 这一步骤是由预处理器(preprocessor)来完成的. 在源流程序被编译器处理之前, 预处理器首先对源程序中的"宏(macro)"进行处理. C初学者可能对预处理器没什么概念, 这是情有可原的: 一般的C编译器都将预处理, 汇编, 编译, 连接过程集成到一起了....阅读全文
摘要: 一、预编译头文件说明所谓头文件预编译,就是把一个工程(Project)中使用的一些MFC标准头文件(如Windows.H、Afxwin.H)预先编译,以后该工程编译时,不再编译这部分头文件,仅仅使用预编译的结果。这样可以加快编译速度,节省时间。预编译头文件通过编译stdafx.cpp生成,以工程名命名,由于预编译的头文件的后缀是“pch”,所以编译结果文件是projectn...阅读全文
摘要: 解析XML文件使用到了微软的msxml ,在xp下使用的时候,只要#import <msxml.dll>编译就可以顺利通过,当把工程移植到Vista上的时候就会遇到找不到msxml.dll的错误。原来在Vista上msxml.dll升级为msxml6.dll,只要把#import <msxml.dll>改成#import <msxml6.dll>相应using ...阅读全文
摘要: 一、什么是Unicode 先从ASCII说起,ASCII是用来表示英文字符的一种编码规范。每个ASCII字符占用1个字节,因此,ASCII编码可以表示的最大字符数是255(00H—FFH)。其实,英文字符并没有那么多,一般只用前128个(00H—7FH,最高位为0),其中包括了控制字符、数字、大小写字母和其它一些符号。而最高位为1的另128个字符(80H—FF...阅读全文
摘要: 来源:作者:日期:10-01-24 电子化时代的许多经营活动需要借助信息系统管理,因此软件外包现象越来越普遍。在软件外包过程中,发包方似乎处于主动位置,可以决定是否和如何外包,哪些内容需要外包,并可以自主选择合适的承包方。但是,企业经营活动高度复杂,风险无处不在。软件外包作为软件生产的新方式同样存在各种风险,现实中有不少发包企业在实施外包项目后发现问题丛生,最终导致外包项目流产。存在风险并不可...阅读全文
摘要: WinSock基本知识这里不打算系统地介绍socket或者WinSock的知识。首先介绍WinSock API函数,讲解阻塞/非阻塞的概念;然后介绍socket的使用。WinSock APISocket接口是网络编程(通常是TCP/IP协议,也可以是其他协议)的API。最早的Socket接口是Berkeley接口,在Unxi操作系统中实现。WinSock也是一个基于Socket模型的API,在Mi...阅读全文
摘要: Note:This tutorial assumes that the user has experience writing basic Qt applications, designing user interfaces with Qt Designer and and using the Qt Resource System.In this example, we will describe...阅读全文
摘要: 和MFC比较起来,QT的信号槽机制比MFC的信号机制慢,但是因为能很好的实现跨平台,所以我在这里总结一下可能对一些人有点用。OpenCV.China论坛上有一个帖子叫做《在MFC框架中快速应用OpenCV》看了后就想结合QT写一下。0.搭建环境:OpenCV + QT 4.6我的实验是基于VS2008来做的,QT官方虽然提供了VS2008-add-in的插件,我没有用。直接下载器编译好的库文件进行...阅读全文
摘要: Frequently Asked QuestionsWhy is code completion not working?You're implementing a slot...Visual Studio can only provide code completion as long as it understands the code. Unfortunately, it does not ...阅读全文
摘要: To add a new translation file to the project, selectQt|Create New Translation File. In theAdd Translationdialog, you can choose the language to create a translation file. A suggested file name is prov...阅读全文
摘要: Adding new resources to a Qt project is similar to adding resources to a normal C++ project, the main difference being that.qrcfiles (Qt resource files) are used instead of Windows.rcfiles. Unlike.rcf...阅读全文
摘要: The Visual Studio Add-in lets you launchQt Designersimply by double-clicking on a.uifile. See theQt Designermanual} for more information.To add a new.uifile to the project, selectProject|Add New Itema...阅读全文
摘要: Creating New Qt ProjectsOnce you have installed the add-in, Visual Studio'sNew Projectdialog will contain aQt Projectsfolder with the following project templates:Qt Application:A simple Qt GUI Applica...阅读全文
摘要: In this tutorial, we will create an address book application step-by-step using the Qt Visual Studio Add-in. We will also outline how to make a basic project using one of the project wizards and creat...阅读全文
摘要: 先从Windows平台开始。 Windows平台下的软件发布最主要的需求是想办法找到在你的发布中应该包含哪些必须的文件, 同时要保证应用程序运行时能正确找到这些文件, 发布基于Qt的软件也是同样的需求。 就不同的情况一一阐述:静态链接的情况静态链接是最简单的情况,这种情况下需要发布的文件数量是最少的, 只需要发布一个单独的执行档外加编译器相关的dll文件。 这种情况下Qt库首先要静态编译:<...阅读全文



