#include <stdio.h>typedef struct { int A; int B; int C;}RES;typedef int bool;#define false 0#define true 1//系统中所有进程数量#define PNUMBER 3//最大需求矩阵RES Max[PNUMBER];//已分配资源数矩阵RES Allocation[PNUMBER];//需求矩阵RES Need[PNUMBER];//可用资源向量RES Available={0,0,0};//安全序列int safe[PNUMBER];void setConfig(){ int i Read More
posted @ 2011-12-29 16:34
javawebsoa
Views(507)
Comments(0)
Diggs(0)
我们知道,如果要显示一个alert窗口(比如用来显示错误或警告信息、询问用户是否确认某操作等等),只要简单地创建一个UIAlertView对象,再调用其show方法即可。示意代码如下:UIAlertView* alertView = [[[UIAlertView alloc] initWithTitle:@"Title" message:@"Message" delegate:nil ... Read More
posted @ 2011-12-29 13:13
javawebsoa
Views(382)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号