/*****************************************************
copyright (C), 2014-2015, Lighting Studio. Co., Ltd.
File name:
Author:Jerey_Jobs Version:0.1 Date:
Description:
Funcion List:
*****************************************************/
#include <stdio.h>
#include <sqlite3.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#define Max 1024
void welcome()
{
printf("********************************************************************\n");
printf("********************************************************************\n");
printf("******************欢 迎 使 用 停 场 管 理 系 统 !*******************\n");
printf("**********1.添加车主信息 2.收取费用 ************\n");
printf("**********3.查找车主信息 4.删除车主信息************\n");
printf("**********5.刷新列表信息 6.退出程序 ************\n");
printf("********请 根 据 功 能 列 表 选 择 您 所 需 要 的 功 能 ! **********\n");
printf("********************************************************************\n");
printf("********************************************************************\n");
}
void creat_table(sqlite3 * db)
{
char *sql;
int rec;
char *errmsg;
sql = "create table if not exists tcc (序号 integer primary key,车牌号 text,姓名 text,停车时间 text,离开时间 text,收费 integer);";
rec = sqlite3_exec(db,sql,NULL,NULL,&errmsg);
if(rec != SQLITE_OK)
{
printf("create error! %s\n
更新停车场(自动读取停车时间和离开时间和计算费用)
最新推荐文章于 2023-05-22 20:20:04 发布
本文介绍了一个自动停车场管理系统,该系统能够精确读取车辆的停车时间和离开时间,进而计算出相应的停车费用。通过这样的自动化流程,提高了停车场管理效率和服务质量。
摘要由CSDN通过智能技术生成