码迷,mamicode.com
首页 >  
搜索关键字:pragma macro    ( 2934个结果
数据类的设计
**info.h#pragma once_MB_DATABASE_BEGINclass MB_DATABASE_EXT CBeamSection:public CSection{public: CBeamSection(); CBeamSection(const CBeamSection* pBea...
分类:其他好文   时间:2014-06-06 18:20:45    阅读次数:210
ZOJ 3765 Lights Splay Tree的几种基本操作
区间的查询,点修改,插入和删除。先姑且当作模板吧,略挫,慢慢补充,慢慢优化。 #include #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:1024000000"); #define EPS (1e-8) #d...
分类:其他好文   时间:2014-06-05 02:01:37    阅读次数:400
hdu-4605-Magic Ball Game-线段树+离线操作
以前用树状数组做过一次,现在用线段树再刷一次。。。 首先必须先离散化。。。 然后建立2颗线段树,第一颗表示往左走,每个节点的值的分布。       第二颗表示往右走,每个节点的值的分布。 然后根据左右走的关系,判断出x,y的值。 #pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #inclu...
分类:其他好文   时间:2014-06-03 01:25:54    阅读次数:315
HDU 3436 Queue-jumpers
从一开始学离散化就对它没有半毛钱好感,感觉出这种题纯属恶心人。 可以将Top x全部取出来然后离散化,缩点。剩下的就是伸展了,不再赘述。 也有人拿线段树过,一直没有想明白. . . #include #include #include #include #include #include #include #include #include #pragma comment...
分类:其他好文   时间:2014-06-02 23:24:50    阅读次数:338
汇编-获取函数名称
printstring macro Var: REQ local info .code if DBGWIN_DEBUG_ON eq 1 pushad invoke szLen, addr Var if DBGWIN_EXT_INFO eq ...
分类:其他好文   时间:2014-06-02 08:42:40    阅读次数:222
AppDelegate
#pragma mark 程序加载完毕(启动完毕)就会调用一次- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ NSLog(@"....
分类:移动开发   时间:2014-06-02 07:13:15    阅读次数:223
winsock select 学习代码(1)
// SelectCli.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #pragma comment(lib,"ws2_32")#define SOCKET_MAXCNT 64#define THREAD_NUM 2 //.....
分类:Windows程序   时间:2014-06-02 00:30:06    阅读次数:476
winsock select 学习代码(2)
之前文章的改进版服务器仅仅接受客户端发送的字符串并显示客户端可以调节发送数目 但是不能超过64// SelectServer.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #pragma comment(lib,"ws2_32"...
分类:Windows程序   时间:2014-06-01 16:49:14    阅读次数:494
BFS判断是否是二分图Bipartite算法
二分图bipartite 使用BFS广度优先判断一个图是否是二分图。基本图操作。 参考 http://www.geeksforgeeks.org/bipartite-graph/ #pragma once #include #include #include using namespace std; class CheckwhetheragivengraphisBipa...
分类:其他好文   时间:2014-06-01 15:03:24    阅读次数:288
PIC18F4520 UART模板
如题 #define USE_AND_MASKS #include #include #include #include #pragma config OSC = INTIO67 //internal oscillator #pragma config WDT = OFF //watchdog timer off #pragma config LVP = OFF...
分类:其他好文   时间:2014-06-01 11:16:04    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!