else{
cout<< cout<<"讀入的初始空閒塊號:"; while(!feof(fp)){ fscanf(fp,"%d ",&temp); if(head->quantity head->cell[head->quantity]=temp; head->quantity++; } else{ p=initial(); p->next=head; head=p; p->cell[p->quantity]=temp; p->quantity++; } total++; //輸出初始數據 cout< } } //查看專用塊函數 void view() { int i; cout< cout<<"-------------------------------"< cout<<"所存儲的空閒塊號:"; for(i=0;i cout< } cout< cout< } //新申請函數 void bid() { char jobname[20]; int number; int i; job *p; cout<<"----------------------------------"< cout<<"請輸入新專業名:"; [1] [2] [3] [4] [5] [6] [7] [8]
From:http://tw.wingwit.com/Article/program/czxt/201311/11251.html