码迷,mamicode.com
首页 >  
搜索关键字:pragma once    ( 4839个结果
HDU 1728 逃离迷宫
y行x列,傻傻分不清楚。 ans[ i ][ j ][ k ][ d ] 标记是否以 转弯k次且方向为d 的状态走过。 被学弟蔑视的一道题竟然没能1A,老啦。 #include #include #include #include #include #include #include #include #include #pragma comment(linker, "/...
分类:其他好文   时间:2014-05-01 22:05:33    阅读次数:438
vs2008中使用gdi+的设置
vs2008中使用gdi+1.新建一个mfc工程2.在stdafx.h文件中加入以下几行语句:#include //#pragma comment(lib, "gdiplus.lib") //在工程属性中添加亦可using namespace Gdiplus; //使用GDI+的命名空间, 若不用....
分类:其他好文   时间:2014-04-30 23:03:21    阅读次数:553
Mine Number(搜索,暴力) ACM省赛第三届 G
Mine NumberTime Limit: 1000ms Memory limit: 65536K有疑问?点这里^_^题目描述Every one once played the game called Mine Sweeping, here I change the rule. You are g...
分类:其他好文   时间:2014-04-30 01:05:41    阅读次数:857
【转载】EmptyWorkingSet 程序运行内存整清理
网络上找了很多关于内存整理的文章,不外乎都是使用EmptyWorkingSet来实现。就如下面这段代码。#include "stdafx.h"#include #include #include #pragma comment (lib,"psapi.lib")BOOL EmptyAllSet(){...
分类:其他好文   时间:2014-04-29 17:15:46    阅读次数:357
[2012山东ACM省赛] Pick apples (贪心,完全背包,枚举)
Pick apples Time Limit: 1000MS Memory limit: 165536K 题目描述 Once ago, there is a mystery yard which only produces three kinds of apples. The number of each kind is infinite. A girl carrying a...
分类:移动开发   时间:2014-04-29 13:18:22    阅读次数:489
IOS 使用dispatch_once 创建单例
+ (instantClass *)sharedClient {static instantClass *_sharedClient = nil;static dispatch_once_t onceToken;dispatch_once(&onceToken, ^{_sharedClient = ...
分类:移动开发   时间:2014-04-29 10:27:47    阅读次数:419
IOS 定位 单例
+ (SCLocationController *)sharedController{ static SCLocationController *sharedController = nil; static dispatch_once_t onceToken; dispatc...
分类:移动开发   时间:2014-04-29 10:12:46    阅读次数:534
Sdut 2409 The Best Seat in ACM Contest(山东省第三届ACM省赛 H 题)(模拟)
题目描述 Cainiao is a university student who loves ACM contest very much. It is a festival for him once when he attends ACM Asia Regional Contest because he always can find some famous ACMers there. C...
分类:其他好文   时间:2014-04-28 10:33:40    阅读次数:340
高效使用auto_ptr
auto_ptr是C++标准库中为了解决资源泄漏的问题提供的一个智能指针类模板。auto_ptr的实现原理是RAII,在构造的时获取资源,在析构的时释放资源。下面通过一个例子掌握auto_ptr的使用和注意事项。事例类的定义:#pragma once#include using namespace ...
分类:其他好文   时间:2014-04-27 21:14:06    阅读次数:622
4839条   上一页 1 ... 482 483 484
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!