电子地图管理系统

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

#include

#include

#include <>

#include

#include

#include

#include

#include

using namespace std;

void start();

void display();

void displaypaixu();

void displayjiansuo();

Road *head = NULL;

void SearchByClass(Road *head)

{

time_t a,b;

Road *prev,*p,*end,*temp_head;

char Run_time[80];

int i=0,Class;

printf("请输入您所要查找的道路的番号:\n");

scanf("%d",&Class);

prev=p=(Road *)malloc(sizeof(Road));n",b-a);

}

void SearchById(Road *head)

{

time_t a,b;

Road *prev,*p,*end,*temp_head;

char Run_time[80];

int i=0,LinkId;

printf("请输入您所要查找的道路的ID:\n");

scanf("%d",&LinkId);

prev=p=(Road *)malloc(sizeof(Road));n",b-a);

}

void SearchByName(Road *head)

{

time_t a,b;

Road *prev,*p,*end,*temp_head;

char Run_time[80];

int i=0;

char Name[30];

printf("请输入您所要查找的道路的名称:\n");

scanf("%s",Name);

prev=p=(Road *)malloc(sizeof(Road));n",b-a);

}

void updata(Road*head)

{

FILE*pp;

FILE*ppp;

FILE*infile;

FILE*outfile;

time_t a;

char filename[20];

Road*p1;

Road*p2;

pp=fopen("","w");

if(pp==NULL)

{

printf("文件创建失败\n");

exit(1);

}.\n");

printf("文件更新成功\n");

fclose(ppp);n",b-a);

}

Road* readfile(void)

{

FILE *fp;

unsigned short temp_data_size[1]; ...."); time(&begin);

head = BubbleSort( head );

time(&end);

i=end-begin;....");

time(&begin);

head=SelectSort( head );

time(&end);

i=end-begin;....");

time(&begin);

QListSort( &head ,NULL);

time(&end);

i=end-begin;. |\n");

printf(" | |\n");

printf(" | ");

for(i=0; i<63; i++)

{

printf(">");

//此处用time函数来暂停秒以描述程序的加载过程

start=clock();

finish=clock();

while((finish-start)<30)

finish=clock();

}

printf(" ");

printf("|\n");

printf(" | Load successfully! |\n");

printf(" | |\n");

printf(" | |\n");

printf("

--------------------------------------------------------------------------\n");

printf("\n 按任意键将进入系统 (Press any key to enter the

system) \n ");

printf("\n ");

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_RED);

system("pause");

}

void display()

{

printf("----------------------请按照菜单提示输入您的选择-------------\n");

printf(" \n");

printf(" <1>【读取文件】\n");

printf(" <2> 【排序】 \n");

printf(" <3> 【检索】 \n");

printf(" <4> 【更新】 \n");

相关文档
最新文档