码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
软件定时器-闹钟提醒我们该吃饭吃饭,该睡觉睡觉
闹钟提醒我们该吃饭吃饭,该睡觉睡觉 softwaretimer.h #ifndef _SOFTWARETIMER_H_ #define _SOFTWARETIMER_H_ typedef enum{z_false = 0, z_true = !z_false} z_bool; typedef unsigned char...
分类:其他好文   时间:2014-06-08 17:37:14    阅读次数:216
简易的sniff程序
真的很简易,这个程序仅仅是抓一些发送到本机的数据包,然后显示出来它们的一些信息罢了!      程序非常简单!      #include #include #include #include #pragma comment(lib, "ws2_32.lib") /*链接ws2_32.lib动态链接库*/ #define SIO_RCVALL _WSAIOW(IOC_VENDOR, ...
分类:其他好文   时间:2014-06-08 17:17:21    阅读次数:219
嵌入式Linux学习笔记之LED驱动
#include #include #include #include #include #include #include #include #include #include #include #include #include #include #define S3C2410_GPFCON S3C2410_GPIOREG(0x50) #define S3C2410_GPFDAT S3C2...
分类:系统相关   时间:2014-06-08 16:28:26    阅读次数:470
coco2d学习day01 精灵分析
day01笔记 using namespace cocos2d; == USING_NS_CC; 一般用后面的 #ifndef __MYLAYER_H__ #define __MYLAYER_H__ ---------------一般添加头文件添加宏 : public CCLayer 一般添加一个类继承CCLayer CCLayer::init(); CCLab...
分类:其他好文   时间:2014-06-08 15:23:33    阅读次数:191
Codeforces 439D Devu and his Brother 三分
题目链接:点击打开链接 = - =以前的三分姿势不正确居然没有被卡掉,,,太逗。。 #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define M 200004 #define N ...
分类:其他好文   时间:2014-06-08 15:04:12    阅读次数:338
多项式的表示
1.多项式的系数存放在数组中 # include # include # define max(x,y) ((x)>(y)?(x):(y)) using namespace std; const int N=100; struct poly { int arr[N]; int mexp; }; void add(poly &a,poly &b,poly &c) { memset(c.ar...
分类:其他好文   时间:2014-06-08 02:17:57    阅读次数:264
poj 2187
求凸包后枚举凸包上的点#include #include #include #include #include #include #include #include #include #include #include #include #include #define maxn 100010#de...
分类:其他好文   时间:2014-06-08 00:30:30    阅读次数:228
codeforces Round #250 (div2)
a题,就不说了吧b题,直接从大到小排序1-limit的所有数的lowbit,再从大到小贪心组成sum就行了 1 #include 2 #include 3 #include 4 #include 5 #define N 200000 6 using namespace std; ...
分类:其他好文   时间:2014-06-07 21:49:57    阅读次数:272
How to use the function of bind
The usage of bind is to define a specified scope for called function. Because the key this is easy to refer another objet, experically window, instead...
分类:其他好文   时间:2014-06-07 21:28:07    阅读次数:307
数据结构中线性表的基本操作-合并两个线性表-依照元素升序排列
#include#include#define LIST_INIT_SIZE 10/*线性表初始长度*/#define LIST_CREATENT 2/*每次的增量*/typedef int ElemType;using namespace std;typedef struct SqList/*线性...
分类:其他好文   时间:2014-06-07 21:01:21    阅读次数:322
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!