void search_editime()    //查找模块2
{ register int t,flag=0;
  unsigned long int time_a,time_b;
  system("cls"); 
  printf("\n \2 请输入查找文件的修改日期范围(用8位数字表示,如
  printf("\n \1 首先请输入开始日期:");
  scanf ("%d",&time_a);
  printf(" \2 然后请输入结束日期:");
  scanf ("%d",&time_b);
  system("cls");
  printf("\n * 找到以下文件符合你的查找要求:                                        *");
  for(t=0; t<Num; t++)
  { if(fil_list[t].editime>=time_a&&fil_list[t].editime<=time_b)
  {printf("\n    编号:%-4d  名称:%-10s\n", t+1,fil_list[t].name);
  flag=1;}
  }
  if(flag==0)
   {     system("cls");
   printf("\n *                查找结果:   没有找到相应文件!                          *");
  }   else more();
}
void search_overdue() //查找模块3
{
  register int t,flag=0;
  unsigned long int time_a,time_b;
  system("cls"); 
 printf("\n \2 请输入查找文件的过期日期范围(用8位数字表示,如
  printf("\n \1 首先请输入开始日期:");
  scanf ("%d",&time_a);
  printf(" \2 然后请输入结束日期:");
  scanf ("%d",&time_b);
  system("cls");
  printf("\n * 找到以下文件符合你的查找要求:                                        *");
  for(t=0; t<Num; t++)
  { if(fil_list[t].overdue>=time_a&&fil_list[t].overdue<=time_b)
  {printf("\n    编号:%-4d  名称:%-10s\n", t+1,fil_list[t].name);
  flag=1;}
  }
  if(flag==0)
   { system("cls");
   printf("\n *                查找结果:   没有找到相应文件!                          *");
  }
  else more();
}
void search_type() //查找模块4
{ register int t,flag=0;
  char stype[20];
  system("cls"); 
 printf("\n \2 请输入您要查找文件的类型:");
  scanf ("%s",stype);
  system("cls");
  printf("\n * 找到以下文件符合你的查找要求:                                        *");
  for(t=0; t<Num; t++)
  { if(strcmp(fil_list[t].type,stype)==0)
  {printf("\n    编号:%-4d  名称:%-10s\n", t+1,fil_list[t].name);
  flag=1;}
}
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页