码迷,mamicode.com
首页 >  
搜索关键字:define    ( 25272个结果
Dijksktra(测试源代码)
1、此程序为c++程序2、以下代码可实现手动输入,即去掉代码中的/*...*/注释符,并同时去掉赋值代码段3、源代码#includeusing namespace std;#define MaxInt 32767#define MVNum 100typedef struct{ char vexs[M...
分类:其他好文   时间:2014-06-26 16:29:13    阅读次数:234
#define #include
c语言中include“”的区别引用的是编译器的类库路径里面的头文件""引用的是你程序目录的相对路径中的头文件假如你编译器定义的自带头文件引用在C:\Keil\c51\INC\下面则#include引用的就是C:\Keil\c51\INC\stdio.h这个头文件不管你的项目在什么目录里,C:\Ke...
分类:其他好文   时间:2014-06-26 15:57:17    阅读次数:225
BZOJ:3209: 花神的数论题
今天居然没参考任何资料解决了这道数位DP,事先只是搞一道数论题练练;思路:求SUM[1]-SUM[N]的二进制的乘积mod1000000007; N#include#include#includeusing namespace std;#define N 10000007typedef long.....
分类:其他好文   时间:2014-06-26 15:09:30    阅读次数:221
自己第一个控制台的游戏——贪吃蛇
一直想自己写个游戏玩玩,好像很厉害的样子,终于今天下定决心写了个最经典的休闲的小游戏——贪吃蛇,当然也有借鉴别人的程序,但是整个代码都是和别人不一样的,直接上代码吧: #include #include #include #include using namespace std; #define ROW 22 #define COL 22 struct Point { char ch...
分类:其他好文   时间:2014-06-26 13:24:30    阅读次数:196
coco2d学习day01 精灵分析
day01笔记 using namespace cocos2d; == USING_NS_CC; 一般用后面的 #ifndef __MYLAYER_H__ #define __MYLAYER_H__ ---------------一般加入头文件加入宏 : public CCLayer 一般加入一.....
分类:其他好文   时间:2014-06-26 12:43:42    阅读次数:177
hdu 1533 Going Home 最小费用流
建图很简单 bfs预处理地图,距离就为费用 源点到所有m建边,流量1费用0 m到所有H建边,流量1费用为距离 H到所有汇点建边,流量1费用0 #include #include #include #include using namespace std; #define MAXN 10005 #define MAXM 1000000 #define INF 0x3f3f3f3 #defi...
分类:其他好文   时间:2014-06-26 12:16:37    阅读次数:199
hdu 1728 bfs
#include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #define ll __int64 #define mod 1000000007 using namespace std; struct node { int x...
分类:其他好文   时间:2014-06-26 11:48:43    阅读次数:214
hdu 1429 状压bfs
#include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #define ll __int64 #define mod 1000000007 using namespace std; struct node { int x...
分类:其他好文   时间:2014-06-26 11:39:45    阅读次数:206
Codeforces 10C Digital Root 规律题
题目链接:点击打开链接 #include #include #include #include #include #include #include #include #include #include using namespace std; #define N 1000005 #define ll __int64 ll num[10],n; ll go(ll x){ ll ans ...
分类:其他好文   时间:2014-06-26 07:31:44    阅读次数:191
PHP 第二天
1、常量 a、定义:define()函数, b、大小写敏感 c、常量名称总是大写,前面不加$ d、检查是否定义:defined()函数 e、常量的值只能是标量(boolean,integer,float,string)2、函数的声明:function
分类:Web程序   时间:2014-06-26 06:32:09    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!