码迷,mamicode.com
首页 >  
搜索关键字:not define    ( 25272个结果
hdu 2112 HDU Today
http://acm.hdu.edu.cn/showproblem.php?pid=2112 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define maxn 6000 8 using nam...
分类:其他好文   时间:2014-05-20 00:38:27    阅读次数:210
English Learning
1. Define terms by placing it in a category.2. Avoid circular definitions3. State definitions positively
分类:其他好文   时间:2014-05-20 00:19:29    阅读次数:365
Demo02_对结构体进行文件读写_张仕传_作业_
#include using namespace std;#define StructArrarySize 5 // 老师数量 #define StudentNum 3 // 每位老师...
分类:其他好文   时间:2014-05-20 00:11:27    阅读次数:342
How to define Servlet filter order of execution using annotations
If we define Servlet filters in web.xml, then the order of execution of the filters will be the same as the order in which they are defined in the web...
分类:其他好文   时间:2014-05-19 23:07:40    阅读次数:352
二分搜索(2、Yougth的最大化,无限逼近最大值)
条件C(x):=可以选择是单位重量的价值不小于x,则该问题就变成了满足C(x)的最大的x,那么怎么判断C(x)是否可行呢?假设我们选了某个物品的集合S,那么它们的单位重量价值是:因此就变成了判断是否存在s满足下面条件:把这个不等是进行变形就得到//#define LOCAL#include//#in...
分类:其他好文   时间:2014-05-19 22:31:12    阅读次数:363
16 道嵌入式C语言面试题
1. 用预处理指令#define 声明一个常数,用以表明 1 年中有多少秒(忽略闰年问题)#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL我在这想看到几件事情:1). #define 语法的基本知识(例如:不能以分号结束,括号的使用,等等)2). 懂得预...
分类:编程语言   时间:2014-05-17 14:46:32    阅读次数:389
[xyz模拟题]动态维护树的直径
专出神题的xyz。支持删加边、修改点权、维护树的直径。LCT 需要额外记录子树信息。用一个堆维护。#include#include#include#include#include#includeusing namespace std;#define rep(i,x,y) for(i=x;i=y;i....
分类:其他好文   时间:2014-05-17 14:29:38    阅读次数:667
Algorithms(字典树)
字典树 #ifndef TIRE_H_INCLUDED #define TIRE_H_INCLUDED /* ** 字典树 */ #define MAX 26 typedef struct Node { int num; struct Node* next[MAX]; }Tire; /* ** 创建一个节点 */ Tire* create(void); /* *...
分类:其他好文   时间:2014-05-16 02:52:23    阅读次数:246
Algorithms(线段树)
线段树 #ifndef LINETREE_H_INCLUDED #define LINETREE_H_INCLUDED typedef struct Node { int i, j; // 表示线段树区间[i, j] int cover; // 表示区间被覆盖的次数 stru...
分类:其他好文   时间:2014-05-16 01:54:46    阅读次数:234
UNIX进程之间传递文件描述符recvmsg与sendmsg
sendfd.c #include #include #include #include #include #include #include #include #include #define ERR_EXIT(m)         do         {                 perror(m); \...
分类:其他好文   时间:2014-05-16 01:27:02    阅读次数:294
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!