printf("\n");
 printf(" 请选择,您需要删除文件的编号(或键入0返回主菜单):");
    scanf("%s",str);
 slot = atoi(str)-1;
 if (slot<0||slot>=Num) goto end;
 else
 {
 system("cls");      printf("  文件编号: %d\n", slot+1);
  printf("  文件名: %s\n", fil_list[slot].name);
  printf("  文件大小: %ld\n", fil_list[slot].size);
  printf("  文件类型: %s\n", fil_list[slot].type);
  printf("  修改日期: %ld\n", fil_list[slot].editime);
  printf("  操作者: %s\n", fil_list[slot].handlers);
  printf("  过期日期: %ld\n", fil_list[slot].overdue);
  printf("  文件说明: %s\n", fil_list[slot].content);
  printf(" 请键入1, 确认删除此文件记录, 或键入其它取消操作:");
  scanf("%d",&a);
  if (a==1)
  { fil_list[slot].name[0]='\0';
   save();
   load();
  }
  else goto agai;
 }
end:  system("cls");
}
void edit()  //修改
{ register int t;
 int slot,n;
 char str[80];
    system("cls");
    printf("  编号   文件名            大小      修改日期       操作者\n");
for(t=0; t<Num; t++)
 {
  if(fil_list[t].name[0])
  { printf("%4d     %-10s  %10ld      %8ld        %s \n", t+1,fil_list[t].name,fil_list[t].size,fil_list[t].editime,fil_list[t].handlers);
  }
 }
 printf("\n");
aga1:
 printf(" 请选择您要修改文件的编号(或键入0返回主菜单):");
 scanf ("%d",&n);
 if (n<=0||n>=Num) goto end;
 slot = find();
 if(slot < n)  {printf("\n \6 您输入的文件编号不对,请重新输入\n\n");goto aga1;}
else
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页