码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
hdu1915
对于图的东西总是一筹莫展,没办法,还是翻出以前的基础题来看看,然后慢慢分析吧。路漫漫其修远兮,吾将上下而求索……void bfs(int x,int y){ for(int k=0;k<8;k++) if(inmap(x+dx[k],y+dy[k]) && !map[x+dx[k...
分类:其他好文   时间:2014-10-01 12:34:01    阅读次数:198
HDU 2049
简单错排#include #include #include #define LL __int64using namespace std;LL Cnk[25][25];LL Dn[25];void initial(){ for(LL i=1;i<25;i++){ Cnk[i][0]=1; for.....
分类:其他好文   时间:2014-10-01 12:33:51    阅读次数:163
委托、Lambda表达式、事件系列01,委托是什么,委托的基本用法,委托的Method和Target属性
委托是一个类。namespace ConsoleApplication1 { internal delegate void MyDelegate(int val); class Program { static void Main(string[] args) { } } } 使用Reflector...
分类:其他好文   时间:2014-10-01 12:17:01    阅读次数:214
linux fork函数浅析
#include #include /*功能:复制进程參数:无返回值: 成功: 父进程:返回子进程id 子进程:返回0 失败: 返回-1*/pid_t fork(void); 由fork创建的新进程被称为子进程(child process)。该函数...
分类:系统相关   时间:2014-10-01 11:21:01    阅读次数:219
iphone开发必知点之--清除和设置桌面提示泡泡计数
当app重新打开或切换到前台时,在app委托applicationWillEnterForeground:方法里实现清除泡泡计数- (void)applicationWillEnterForeground:(UIApplication *)application{ // clear badag...
分类:其他好文   时间:2014-10-01 04:30:20    阅读次数:227
fds
1 private static void Console(string msg) 2 { 3 if ((0 != 0) || msg.StartsWith("[INFO] ")) 4 { 5 Debug.Log(msg); ...
分类:其他好文   时间:2014-10-01 02:12:10    阅读次数:154
Thread的生命周期
Thread类中会影响thread生命周期的方法有: package?java.lang; public?class?Thread?implements?Runnable?{ ????public?void?start(); ????public?void?run(); ????public?void?stop(...
分类:其他好文   时间:2014-10-01 01:06:10    阅读次数:361
二叉搜索树转换成双向链表
好一点点就是好一点点嘛RT传入3个参数 。Yahoo二面被问到!完跪.... 1 void BST2DoubleList(TreeNode *root, TreeNode *& prev, TreeNode *& head) { 2 if (root == NULL) 3 return;...
分类:其他好文   时间:2014-10-01 00:48:30    阅读次数:222
this关键字的使用!
class Student{ String name; int age; Student(String name,int age){ this.name=name; this.age=age; } Student playGame(){ this.age++; return this; } void...
分类:其他好文   时间:2014-10-01 00:37:10    阅读次数:174
线性表之链表源代码
//链表 #include #include using namespace std; typedef struct LNode { int data; struct LNode *next; }LNode,*LinkList; int InitList_L(LinkList &L) { L=new LNode; L->next=NULL; return 1; } void Inpu...
分类:其他好文   时间:2014-10-01 00:16:00    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!