• 大小: 8.13MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-02
  • 语言: C/C++
  • 标签: Ege  C语言  

资源简介

实习制作的C语言 EGE 图书管理系统 使用EGE 图形界面 实现全鼠标操作~ 实现了图书的借阅 归还 录入 查询 同时记录数据 希望你喜欢

资源截图

代码片段和文件信息

/*!
 * @file       book_stu.cpp
 * @brief      指针计算
 * @author     陶金鉴
 * @remarks    通过指针移动操作 简单 高效 快速 值得信赖!
 */

#include “book_stu.h“

Book_info *getbooks(Book_info *pb)
{
    for(pb=books;(pb->exist)==1;pb++);
    return pb;
}

Student_info *getstudent(Student_info *ps)
{
    for( ps=students;(ps->exist)==1;ps++);
    return ps;
}

Py *getPy(Py *pp)
{
    for(pp=bussiness;(pp->exist)==1;pp++);
    return pp;
}

Book_info *sure_miss(Book_info *pb)
{
    int i;
    dates now;
    now = get_systime();
    for(;((pb->where)== go_out);pb++)
    {
        if(day_day(pb->Borrow_datnow) >= break_limit)
        {
            return pb;
        }
        else
            i++;
    }
    pb = NULL;
    return pb;
}

void book_display()
{
    int width=85;
    cleardevice();
    pb=books;
    xyprintf(300width-80“------%s------““书籍信息“);
    setfont(200“楷书“);
    xyprintf(100width-55“|%14s|%14s|%14s|%14s|““书名   ““类别   ““作者   ““价格   “);
    xyprintf(100width-35“|%14s|%14s|%14s|%14s|““------------““------------““------------““----------“);
    for(;(pb->exist)==1;pb++)
    {
        if((pb->where)==go_out)
        {
                setcolor(RED);
                xyprintf(100width“|%14s|%14s|%14s|%14d|“pb->book_namepb->classespb->authorpb->price);
                setcolor(BLACK);
                xyprintf(100width+30“|%14s|%14s|%14s|%14s|““------------““------------““------------““----------“);
        }
        else
        {
                setcolor(BLUE);
                xyprintf(100width“|%14s|%14s|%14s|%14d|“pb->book_namepb->classespb->authorpb->price);
                setcolor(BLACK);
                xyprintf(100width+30“|%14s|%14s|%14s|%14s|““------------““------------““------------““----------“);
        }
        width+=60;
    }
}
void py_display()
{
    int width = 40;
    cleardevice();
    pp=bussiness;
    xyprintf(300width-35“------%s------““记录“);
    setfont(200“楷书“);
    for(;(pp->exist)==1;pp++)
    {
        if((pp->sta)==1)
        {
            setcolor(RED);
            xyprintf(100width“|%4d年%2d月%2d日%14s%5s%14s|“pp->happen_dat.yearpp->happen_dat.monthpp->happen_dat.daypp->student_name“借出“pp->book_name);
            xyprintf(100width+20“________________________________________________“);
        }
        else
        {
            setcolor(BLUE);
            xyprintf(100width“|%4d年%2d月%2d日%14s%5s%14s|“pp->happen_dat.yearpp->happen_dat.monthpp->happen_dat.daypp->student_name“还回“pp->book_name);
            xyprintf(100width+20“________________________________________________“);
        }
        setcolor(BLACK);
        width+=50;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-12 20:49  Lms_GO\
     目录           0  2018-01-07 10:07  Lms_GO\Lms_GO 可执行文件\
     目录           0  2018-01-07 10:07  Lms_GO\Lms_GO 可执行文件\Image\
     文件      451673  2018-02-08 10:27  Lms_GO\Lms_GO 可执行文件\Image\Goodbye.png
     文件       24021  2018-01-02 21:48  Lms_GO\Lms_GO 可执行文件\Image\Jz.png
     文件        4896  2018-01-06 19:59  Lms_GO\Lms_GO 可执行文件\Image\Load.png
     文件      421694  2018-01-02 21:48  Lms_GO\Lms_GO 可执行文件\Image\bgp.png
     文件      697609  2018-01-02 21:47  Lms_GO\Lms_GO 可执行文件\Image\book.png
     文件      247700  2018-01-06 20:37  Lms_GO\Lms_GO 可执行文件\Image\load0.png
     文件      513536  2018-01-06 20:40  Lms_GO\Lms_GO 可执行文件\Lms_GO.exe
     目录           0  2018-01-07 10:07  Lms_GO\Lms_GO 可执行文件\Music\
     文件      698065  2015-05-06 13:16  Lms_GO\Lms_GO 可执行文件\Music\BGM.mp3
     文件       13900  2018-01-02 21:48  Lms_GO\Lms_GO 可执行文件\Music\click.wav
     文件       16270  2015-05-06 13:16  Lms_GO\Lms_GO 可执行文件\Music\finish.mp3
     文件        9220  2005-09-16 02:20  Lms_GO\Lms_GO 可执行文件\Music\msg.wav
     文件        6947  2005-09-16 02:20  Lms_GO\Lms_GO 可执行文件\Music\system.wav
     目录           0  2018-01-07 10:07  Lms_GO\Lms_GO 可执行文件\database\
     文件       12000  2018-03-04 15:37  Lms_GO\Lms_GO 可执行文件\database\book_info.dat
     文件       12000  2018-03-04 15:35  Lms_GO\Lms_GO 可执行文件\database\py_info.dat
     文件           0  2018-01-04 14:23  Lms_GO\Lms_GO 可执行文件\database\student_info.dat
     目录           0  2018-01-07 10:08  Lms_GO\Projects\
     文件        1491  2018-01-06 16:34  Lms_GO\Projects\Files.cpp
     文件         168  2018-01-03 21:28  Lms_GO\Projects\Files.h
     目录           0  2018-01-07 10:08  Lms_GO\Projects\Image\
     文件      451673  2018-02-08 10:27  Lms_GO\Projects\Image\Goodbye.png
     文件       24021  2018-01-02 21:48  Lms_GO\Projects\Image\Jz.png
     文件        4896  2018-01-06 19:59  Lms_GO\Projects\Image\Load.png
     文件      421694  2018-01-02 21:48  Lms_GO\Projects\Image\bgp.png
     文件      697609  2018-01-02 21:47  Lms_GO\Projects\Image\book.png
     文件      247700  2018-01-06 20:37  Lms_GO\Projects\Image\load0.png
     文件        2018  2018-01-07 10:05  Lms_GO\Projects\Lms_GO.cbp
............此处省略74个文件信息

评论

共有 条评论