码迷,mamicode.com
首页 >  
搜索关键字:pragma once    ( 4839个结果
ZOJ 3209 Treasure Map (Dancing Links)
Treasure MapTime Limit:2 Seconds Memory Limit:32768 KBYour boss once had got many copies of a treasure map. Unfortunately, all the copies are now brok...
分类:其他好文   时间:2014-05-29 04:02:47    阅读次数:313
OpenCL( 一)
#include #include #include #include #pragma comment(lib, "OpenCL.lib")const char * loadfile(const char * fileName){ std::ifstream fs(fileName, std...
分类:其他好文   时间:2014-05-29 00:21:15    阅读次数:246
Objective-C单例模式的常用实现
oc中单例模式可以使用以下方法来实现+ (YourClass *)sharedInstance{ static dispatch_once_t once; static YourClass *sharedInstance = nil; dispatch_once(&once, ^ ...
分类:其他好文   时间:2014-05-28 03:11:58    阅读次数:168
windows服务控制(开启/停止已有服务)
#include "stdafx.h"#include #include #include #include #pragma comment(lib, "advapi32.lib")TCHAR szCommand[10];TCHAR szSvcName[80];SC_HANDLE schSCMana...
分类:Windows程序   时间:2014-05-26 07:58:05    阅读次数:420
回调函数的应用误区4(c/s OK版本回调小程序)
##################dll.h###################pragma oncetypedef void (*CALLBACK)(int );typedef struct handleCB{ CALLBACK t_fun;}stCallBack;static stCallB...
分类:其他好文   时间:2014-05-26 06:22:27    阅读次数:275
Design Pattern - Observer 观察者设计模式
Spy on enemy. 使用这个模式可以根据某些事件自动更新。 设计思路: 1 设计一个基类,作为需要观察一个时间行为的接口类 2 设计一个观察者类,可以观察所有基类的衍生类, 这里使用set来保存这些需要更新的类。 一个事件相当于一个函数,事件发生(调用函数)同时自动调用需要更新的函数动作。 #pragma once #include #include #inclu...
分类:其他好文   时间:2014-05-26 06:16:49    阅读次数:284
[2012山东ACM省赛] Pick apples (贪心,全然背包,枚举)
Pick applesTime Limit: 1000MS Memory limit: 165536K题目描写叙述Once ago, there is a mystery yard which only produces three kinds of apples. The number of ea...
分类:移动开发   时间:2014-05-26 00:24:52    阅读次数:443
【LeetCode】Remove Duplicates from Sorted Array
Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear only once and return the new len...
分类:其他好文   时间:2014-05-25 19:08:31    阅读次数:203
smarty中foreach的使用
foreach.tpl 内建函数foreach的使用 **********foreach的使用********** **********foreach带key使用********** = **********foreach遍历二维数组使用**********      foreachTest.php <?php require_once './libs/Smarty....
分类:其他好文   时间:2014-05-25 09:48:17    阅读次数:236
初涉Splay Tree
Splay Tree 支持的之中操作。 插入,删除,求前驱和后即,区间更新与查询。 先来一发Splay Tree最基础的操作——伸展。 #include #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:102400...
分类:其他好文   时间:2014-05-25 04:27:37    阅读次数:291
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!