计价规则
1、15公里以内每公里收费2元;
2、15公里以上每公里收费3元;
3、停车等候时,每累计5分钟加2元;
5、超过30公里后,超出部分加收50%的空返费;
4、起步价3公里10元。#include <At89x52.h>
#include <stdio.h>
#include <string.h>本文来自辣.文,论-文·网原文请找腾讯324.9114
#include "lcd.h"
typedef struct typFNT毕业论文http://www.751com.cn/ _Char //------字符字模显示数据结构------
{
char Index_Char[1];
char Msk_Char[16];
};
struct typFNT_Char code ASC_16[] = {//-----显示为8*16-----
// MingLiu体
"0",0x00,0xF0,0x08,0x04,0xC4,0x28,0xF0,0x00,0x00,0x0F,0x14,0x23,0x20,0x10,0x0F,0x00,
"1",0x00,0x00,0x00,0x08,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x3F,0x20,0x00,0x00,
"2",0x00,0x18,0x04,0x04,0x04,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,
"3",0x00,0x08,0x04,0x84,0xC4,0x38,0x00,0x00,0x00,0x20,0x20,0x20,0x20,0x11,0x0E,0x00,
"4",0x00,0x00,0x80,0x60,0x18,0xFC,0x00,0x00,0x00,0x06,0x05,0x04,0x04,0x3F,0x04,0x00,
"5",0x00,0x00,0x7C,0x44,0x44,0x84,0x04,0x00,0x00,0x20,0x20,0x20,0x20,0x10,0x0F,0x00,
"6",0x00,0xE0,0x90,0x48,0x44,0x84,0x04,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,
"7",0x00,0x1C,0x04,0x04,0x04,0xE4,0x1C,0x00,0x00,0x00,0x00,0x38,0x07,0x00,0x00,0x00,
"8",0x00,0x30,0x48,0x84,0x84,0x48,0x30,0x00,0x00,0x0E,0x11,0x20,0x20,0x11,0x0E,0x00,
"9",0x00,0xF0,0x08,0x04,0x04,0x08,0xF0,0x00,0x00,0x20,0x21,0x22,0x12,0x09,0x07,0x00,
".",0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,
":",0x00,0x00,0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,
};
typedef struct typFNT_GB16 //------字符字模显示数据结构------
{
char Index_GB16[2];
char Msk_GB16[32];2528