码迷,mamicode.com
首页 >  
搜索关键字:pragma pack    ( 9663个结果
MFC和GDI+一起使用
VS2010,新建MFC项目,在头文件stdafx.h中添加:1 #include 2 using namespace Gdiplus;3 #pragma comment (lib,"Gdiplus.lib")定义类的变量 ULONG_PTR gdiplusToken;在BOOL CGDALDes....
分类:其他好文   时间:2014-07-27 22:56:39    阅读次数:317
Codeforces Round #258 (Div. 2)-(A,B,C,D,E)
A:Game With Sticks 水题。。。每次操作,都会拿走一个横行,一个竖行。 所以一共会操作min(横行,竖行)次。 #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000,1024000000") using...
分类:其他好文   时间:2014-07-26 02:44:06    阅读次数:278
MFC 之 截图工具
这个截图工具能实现最基本的截图功能,并保存为bmp图片。 编写环境是vs2005,使用Unicode,基于对话框。 没什么难度,直接看代码 项目名称为CutOut // CutOutDlg.h : 头文件 // #pragma once #include // CCutOutDlg 对话框 class CCutOutDlg : public CDialog { // 构造 pub...
分类:其他好文   时间:2014-07-26 02:28:16    阅读次数:201
使用windows API函数调用浏览器组件
#include #include #include #include #pragma comment(lib,"atl")#pragma comment(lib,"User32.lib")CComModule _Module;const TCHAR *URL[9] = { _T("http:...
分类:Windows程序   时间:2014-07-25 16:48:31    阅读次数:1022
初涉A*剪枝
挖坑防忘,天亮补题解。#include #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000");#define EPS (...
分类:其他好文   时间:2014-07-25 16:47:21    阅读次数:228
Xcode Snippets
在Double Encore,我们写的代码都是干净,可重用的——不过,有时候并不能完全做到。如在使用pragma mark的时候。下面就是一个示例:#pragmamark-UIViewControlleroverrides通过pragma mark,可以让代码看起来既整洁又有组织。虽然这很重要,但是...
分类:其他好文   时间:2014-07-25 13:57:21    阅读次数:238
LeetCode_61uniquePaths [Unique Paths]
#pragma warning(disable:4996) #include <cstdio> #include <Windows.h> #include <tchar.h> /* submit time : 3 1. Time Limit Exceeded 23, 12 request : A robot is located at the top-left corn...
分类:其他好文   时间:2014-07-25 11:40:41    阅读次数:315
C++primer原书中的一个错误(派生类using声明对基类权限的影响)
在C++primer 第4版的 15章 15.2.5中有下面这样一段提示: “注解:派生类可以恢复继承成员的访问级别,但不能使访问级别比基类中原来指定的更严格或者更宽松。” 在vs2010中经过验证,这段话是错误的。具体见以下代码: //Base.h #pragma once #include using namespace std; class Base { public: Base(...
分类:编程语言   时间:2014-07-25 11:18:11    阅读次数:233
itoa atoi
#pragma once #include <iostream> #include <string> using namespace std; //itoa //int ==> string //10进制 string itoa(int nNum) { int nSize = 128; char* pStr = new char[nSize]; memset(pStr,0,nS...
分类:其他好文   时间:2014-07-25 00:10:54    阅读次数:251
LeetCode_60rotateRight [Rotate List]
#pragma warning(disable:4996) #include <cstdio> #include <Windows.h> #include <tchar.h> /* submit time : 4 can not remember request : Given a list, rotate the list to the right by k places,...
分类:其他好文   时间:2014-07-25 00:04:04    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!