码迷,mamicode.com
首页 >  
搜索关键字:cpp    ( 13186个结果
C++的头文件和实现文件
look athttp://www.cnblogs.com/ider/archive/2011/06/30/what_is_in_cpp_header_and_implementation_file.html
分类:编程语言   时间:2015-11-12 18:07:38    阅读次数:155
在OpenCV2.2后的版本中没有CvvImage类的解决方法(及出现错误:IntelliSense: 未定义标识符 "CvvImage" )
首先在你的解决方案资源管理器中的头文件和源文件下分别添加CvvImage.cpp 如下图:view类头上加个#include "CvvImage.h" 头文件,应该就可以解决了。下面是源代码:CvvImage.hclassCvvImage{public:CvvImage();virtual ~Cvv...
分类:系统相关   时间:2015-11-12 11:44:16    阅读次数:2974
win编程实践(1)【c++】
变量的赋值可采用函数表示法,也可使用等号赋值。 // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include  using std::cout;using std::endl; int main(){       cout       intx = 5;       inty(10);       intz = ...
分类:编程语言   时间:2015-11-11 16:35:55    阅读次数:138
HookIAT的启动程序
1 // 启动程序.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include 6 #include 7 #include 8 #include 9 10 #pragma comment(lib,"psap...
分类:其他好文   时间:2015-11-11 13:04:40    阅读次数:202
CListCtrl 控件显示乱码
需要手动修改控件的字体如下:[cpp]view plaincopyLOGFONTlf;memset(&lf,0,sizeof(LOGFONT));lf.lfHeight=12;strcpy(lf.lfFaceName,"宋体");HFONThfont=::CreateFontIndirect(&lf...
分类:其他好文   时间:2015-11-10 19:19:58    阅读次数:203
c++:实现一个栈,包括入栈、出栈函数以及返回最小值,要求时间复杂度为O(1)
MinStakc.cpp#include<iostream> usingnamespacestd; #include<stack> template<classT> classStack{ public: voidPush(constT&x){//入栈 _stack.push(x); if(_minstack.empty()) _minstack.push(x); else{ _minstack.push((_minstack.top()>x)?x:_mi..
分类:编程语言   时间:2015-11-10 16:25:56    阅读次数:419
C++:检查出栈顺序的合法性
CheckSequence.cpp#include<iostream> #include<assert.h> usingnamespacestd; #include<stack> boolChecksequence(int*stackIn,int*stackOut,intlenIn,intlenOut){ assert(stackIn&&stackOut); if(lenIn!=lenOut)//两个序列长度不相等,不合法 retu..
分类:编程语言   时间:2015-11-10 14:15:25    阅读次数:201
DECLARE_MESSAGE_MAP用法
DECLARE_MESSAGE_MAP( )说明:你的程序中的每一个CCmdTarget的派生类都可以提供一个消息映射以处理消息。在你的类声明的末尾使用DECLARE_MESSAGE_MAP宏。然后,在实现了类成员函数的.CPP文件中加入BEGIN_MESSAGE_MAP宏,再加入每个消息处理函数的...
分类:其他好文   时间:2015-11-10 10:28:36    阅读次数:208
Qt中事件分发源代码剖析(一共8个步骤,顺序非常清楚:全局的事件过滤器,再传递给目标对象的事件过滤器,最终传递给目标对象)
Qt中事件分发源代码剖析Qt中事件传递顺序:在一个应该程序中,会进入一个事件循环,接受系统产生的事件,并且进行分发,这些都是在exec中进行的。下面举例说明:1)首先看看下面一段示例代码:[cpp]view plaincopyintmain(intargc,char*argv[]){QApplica...
分类:其他好文   时间:2015-11-09 23:52:26    阅读次数:622
Identify Memory Leaks in Visual CPP Applications(VLD内存泄漏检测工具)
原文地址:http://www.codeproject.com/Articles/1045847/Identify-Memory-Leaks-in-Visual-CPP-Applications基于CPOL LicenseIdentify Memory Leaks in Visual CPP App...
分类:移动开发   时间:2015-11-09 22:29:44    阅读次数:313
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!