更新停车场(自动读取停车时间和离开时间和计算费用)

/*****************************************************
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
  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值