int reach_hour;
int reach_minite;
int need_time;
int privilege;
float excellent;
int start_time;
int wait_time;
int visited;
}job;
job jobs[MAXJOB];
int quantity;
//初始化函數
void initial()
{
int i;
for(i= jobs[i].number=0; jobs[i].reach_time=0; jobs[i].reach_hour=0; jobs[i].reach_minite=0; jobs[i].privilege=0; jobs[i].excellent=0; jobs[i].start_time=0; jobs[i].wait_time=0; jobs[i].visited=0; } quantity=0; } //重置作業數據函數 void reset() { int i; for(i=0;i jobs[i].start_time=0; [1] [2] [3] [4] [5] [6] [7] [8] [9]
From:http://tw.wingwit.com/Article/program/czxt/201311/24019.html