对于图的东西总是一筹莫展,没办法,还是翻出以前的基础题来看看,然后慢慢分析吧。路漫漫其修远兮,吾将上下而求索……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
简单错排#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
委托是一个类。namespace ConsoleApplication1
{ internal delegate void MyDelegate(int val); class Program { static void Main(string[] args) { } }
}
使用Reflector...
分类:
其他好文 时间:
2014-10-01 12:17:01
阅读次数:
214
#include #include /*功能:复制进程參数:无返回值: 成功: 父进程:返回子进程id 子进程:返回0 失败: 返回-1*/pid_t fork(void); 由fork创建的新进程被称为子进程(child process)。该函数...
分类:
系统相关 时间:
2014-10-01 11:21:01
阅读次数:
219
当app重新打开或切换到前台时,在app委托applicationWillEnterForeground:方法里实现清除泡泡计数- (void)applicationWillEnterForeground:(UIApplication *)application{ // clear badag...
分类:
其他好文 时间:
2014-10-01 04:30:20
阅读次数:
227
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生命周期的方法有: 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
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