WEB开发网
开发学院软件开发C++ a simple menu programme 阅读

a simple menu programme

 2008-03-08 12:30:20 来源:WEB开发网   
核心提示:#include<conio.h>#include<stdio.h>main(){ strUCt text_info r; int col=16,row=6; char *info1=" WELCOME TO THE STUDENT MANAGE SYSTEM"; char
#include<conio.h>
#include<stdio.h>
main()
{
 strUCt text_info r;
 int col=16,row=6;
 char *info1="       WELCOME TO THE STUDENT MANAGE SYSTEM";  char *info2="               Contact Me:";
 char *info3="               QQ:45569671";
 char *info4="               MobilePhone:13186335317";
 char *info5="               E-Mail:sunjia@hotmail.com";  char *info6="          Copyright ? 2003 SunJia Software Design Studio.";
 char *info7="               All Rights Reserved.";  char block[10000];/*this array uses to save the screen area*/
 /*save the original screen parameters and the background of the hinting window*/
 gettextinfo(&r);/*system function*/
 gettext(col,row,col+68,row+3,block);/*system function*/
 /*draw the hinting window*/
 textcolor(BLACK);/*system function*/
 textbackground(GREEN);/*system function*/
 window(col+1,row+1,col+68,row+8);/*system function*/
 clrscr();/*system function*/
 textbackground(RED);
 window(col,row,col+70,row+10);
 clrscr();
 gotoxy(22,8);
 puts("_______________________________________");
 gotoxy(22,6);
 puts("");
 gotoxy(22,8);
 puts("");
 gotoxy(60,6);
 puts("");
 gotoxy(60,8);
 puts("");
 gotoxy(23,5);
 puts("_____________________________________");
 gotoxy(12,7);
 textcolor(WH99vE);
 cputs(info1);
 textcolor(GREEN);
 gotoxy(1,11);
 cputs(info2);
 gotoxy(1,12);
 cputs(info3);
 gotoxy(1,13);
 cputs(info4);
 gotoxy(1,14);
 cputs(info5);
 gotoxy(1,18);
 cputs(info6);
 gotoxy(1,19);
 cputs(info7);
 getch();
 window(r.winleft,r.wintop,r.winright,r.winbottom);
 puttext(col,row,col+71,row+9,block);
}

Tags:simple menu programme

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接