⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 routelink_main.c

📁 本程序的功能是对导航数据中的道路情况数据进行整理
💻 C
字号:
/****************************************************************************
	FileName    :	routelink_main.c

	Date        :	2006.07.22

	Author      :	

	Copyright   :	
-----------------------------------------------------------------------------
	Modify History
	NO       Date           Modifier         Modified Contet

****************************************************************************/

/*-------------------------------------------------------------------------*/
/*																		   */
/*   Include File Section                                                  */
/*																		   */
/*-------------------------------------------------------------------------*/
#include <stdio.h>
#include "routelink_c.h"
#include "routelink_p.h"

/* Operation type definition											   */
#define		RTL_ANALYSE				( 1  )			/* Analyse			   */
#define		RTL_SRC					( 2  )			/* Search			   */
#define		RTL_UPD					( 3  )			/* Update			   */

/*-------------------------------------------------------------------------*/
/*																		   */
/*   Main function define		                                           */
/*																		   */
/*-------------------------------------------------------------------------*/
int main()
{	
	int				iRet = RET_SUCCESS;		/* Return value				   */

	/* Matrix process main function execution	*/
	iRet = RouteLink_Main();

	return iRet;
}

/*-------------------------------------------------------------------------*/
/*																		   */
/*   RoutLink Proc Main Function define Section							   */
/*																		   */
/*-------------------------------------------------------------------------*/
/***************************************************************************/
/*	RouteLink_Main														   */
/*	-----------------------------------------------------------------------*/
/*	Input:																   */
/*																		   */
/*	-----------------------------------------------------------------------*/
/*	Output:																   */
/*		RETURN				:	乮Normal乯RET_SUCCESS					   */
/*								乮Error乯 RET_FAILED					   */
/*																		   */
/*	-----------------------------------------------------------------------*/
/*	Outline:															   */
/*		Route link proc main funciton.									   */
/*																		   */
/*	-----------------------------------------------------------------------*/
/*	Others:																   */
/*																		   */
/***************************************************************************/
int	RouteLink_Main()
{
	int		iUserSel;	/* Operation user select			   */
	char	cExit = 0;
	int		iResult = 0;

	/* Welecome information output										   */
	printf( "\n********************************************************\n" );
	printf( "*  This is a program for Route Link Proc with the      *\n" );
	printf( "*  following funcitons!                                *\n" );
	printf( "*  1. Route analyse by Link ID.                        *\n" );
	printf( "*  2. Route search by different kind.                  *\n" );
	printf( "*  3. Route Link Info update from the input file       *\n" );
	printf( "*     SourceLinkInfo.dat                               *\n" );
	printf( "********************************************************\n" );


	while( cExit == 0 )
	{
		/* Prompt the user to select an operation		*/
		printf( "\nPlease select your operation!>>>>>>>>\n" );
		printf( "( 1	: Route link data analyse.....)\n" );
		printf( "( 2	: Route link data search...)\n" );
		printf( "( 3	: Route link data update...)\n" );
		printf( "( Other: Exit. )\n"	);

		iResult = scanf( "%d", &iUserSel);
		while( iResult <= 0 )
		{
			printf( "Invalid input! Please input again:\n");
			fflush( stdin );
			iResult = scanf( "%d", &iUserSel);
		}
		switch( iUserSel )
		{
		case RTL_ANALYSE:
			printf( "\nYou have selected the option [Route link data analyse].\n" );
			RouteLink_Analyse();
			break;

		case RTL_SRC:
			printf( "\nYou have selected the option [Route link data search].\n" );
			RouteLink_Src();
			break;

		case RTL_UPD:
			printf( "\nYou have selected the option [Route link data update].\n" );
			RouteLink_Update();
			break;

		default:
			printf( "\nYou have selected to exit the program. It will exit!\n" );
			cExit = 1;
			break;
		}
	}

	return RET_SUCCESS;
}


/*	End of file------------------------------------------------------------*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -