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

📄 face.c

📁 图书借阅管理程序v1.2
💻 C
字号:
#include<conio.h>
#include<string.h>
#include<stdio.h>
#include<dos.h>

void windows(struct dnode* bookhead);/******此函数用来显示程序主界面****/

void windows(struct dnode* bookhead)  /* ***********************画窗体函数 */
{
 int i,j;
 int bookcount=Length(bookhead);
 light_mouse(OFF);
 textbackground(LIGHTGRAY);
 clrscr();
  textcolor(BLACK);
  gotoxy(1,1);
 cprintf("                             图书借阅管理程序           ");
 gotoxy(67,1);
 textbackground(MAGENTA);
 textcolor(LIGHTGREEN);
 cprintf("上翻页");
 gotoxy(74,1);
 cprintf("下翻页");
 window(1,2,80,25);
 textbackground(BLUE);
 textcolor(LIGHTBLUE); /*画边框用白色*/
 clrscr();
putch(218);
for(i=1;i<79;i++) putch(196);

for(i=1;i<22;i++)
  {gotoxy(1,i+1);
   putch(179);
  }
gotoxy(1,23);
putch(192);
textcolor(BLACK);
gotoxy(80,1);
putch(191);
for(i=1;i<22;i++)
 {gotoxy(80,i+1);
  putch(179);
 }
gotoxy(2,23);
for(i=1;i<79;i++) putch(196);
putch(217);



textcolor(WHITE);
gotoxy(32,1);
cprintf(" 图书管理器 ");
window(1,25,80,25);
highvideo();
textcolor(BLACK); /*提示栏信息*/
textbackground(LIGHTGRAY);
clrscr();
cprintf(" F1-帮助 F2-密码 F4-查询 F5-切换屏幕 F8-借书 F9-还书 Ctrl+X-退出   ");
textcolor(LIGHTRED);
textbackground(BLACK);
cprintf("%c %c %c",175,175,175);
window(2,3,79,23);
textbackground(BLUE);
textcolor(LIGHTRED);
clrscr();
cprintf("图书 %c 图书 %cCD?%c 是否%c         图书名称\r\n",179,179,179,179); /* List head */
cprintf("代号 %c 价格 %cY/N%c 借出%c     (共有图书%d本)",179,179,179,179,bookcount);
window(2,5,79,23);  /*程序主窗口*/
textcolor(YELLOW);
clrscr();
light_mouse(ON);
}

⌨️ 快捷键说明

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