#include<stdio.h>
#include<string.h>
#include <stdlib.h>
#include<graphics.h>
main()
{
int gdriver,gmode,i,n,m;
int p[]={5,395,10,390,90,390,95,395,95,470,5,470,5,395};
int v[]={95,395,100,390,180,390,185,395,185,470,95,470};
int f[]={185,395,190,390,270,390,275,395,275,470,185,470,185,395};
int ti[]={275,395,280,390,360,390,365,395,365,470,275,470,275,395};
int tip[]={365,395,370,390,450,390,455,395,455,470,365,470,365,395};
int pps[]={455,395,450,390,540,390,545,395,545,470,455,470,455,395};
int other[]={545,395,550,390,630,390,635,395,635,470,545,470,545,395};
gdriver=DETECT;
registerbgidriver(EGAVGA_driver);
initgraph(&gdriver,&gmode,"c:\\tcwin");
setbkcolor(1);
setcolor(3);
rectangle(5,10,635,470); /*****zhengtiquyu*****/
setfillstyle(1,9); /***moshixuanze****/
bar(5,10,155,60);
setfillstyle(1,4); /*****baojinghonghonghuang*****/
bar(155,10,265,60);
setfillstyle(1,4);
bar(265,10,375,60);
setfillstyle(1,14);
bar(375,10,485,60); /***************************/
setfillstyle(1,9); /***********time*********/
bar(485,10,635,60);
/****************************************************************/
setcolor(11); /******canshushezhiquyu******/
setfillstyle(1,11); /********beijingse****/
drawpoly(7,p);
floodfill(6,391,11);
drawpoly(7,v);
floodfill(100,450,11);
drawpoly(7,f);
floodfill(200,450,11);
drawpoly(7,ti);
floodfill(300,450,11);
drawpoly(7,tip);
floodfill(400,450,11);
drawpoly(7,pps);
floodfill(500,450,11);
drawpoly(7,other);
floodfill(600,450,11);
setcolor(0);
/***shezhi**pmax**/
line(185,390,185,470); /**vt**/
line(275,390,275,470); /**freq**/
line(365,390,365,470); /**ti:te**/
line(455,390,455,470); /***tip:ti**/
line(545,390,545,470); /**pps**/
/****************************************************************/
setcolor(8); /********canshujiance*******/
setfillstyle(1,8); /**********beijingse*******/
rectangle(485,60,635,390);
floodfill(489,61,8);
setcolor(0);
line(485,60,485,390);
line(485,120,635,120); /***jiance***oo**/
line(485,210,635,210); /****vt*******/
line(485,300,635,300); /*****p*******/
/*************************boxingquyu********************************/
setcolor(7);
setfillstyle(1,7); /*******beijingse********/
rectangle(5,60,485,390);
floodfill(6,61,7);
setcolor(15);
line(40,200,450,200); /*******paw***x***/
line(445,195,450,200);
line(445,205,450,200);
line(40,360,450,360); /********flow***x***/
line(445,355,450,360);
line(445,365,450,360);
line(40,80,40,200); /*********paw***y**/
line(35,85,40,80);
line(45,85,40,80);
line(40,250,40,360); /********flow****y**/
line(35,255,40,250);
line(45,255,40,250);
line(40,180,450,180); /******paw*******0****/
line(40,300,450,300); /*******flow******0*****/
line(35,260,40,260); /******flow****Y***kedu**/
line(35,340,40,340);
line(35,360,40,360);
line(35,300,40,300);
line(35,200,40,200); /********paw****y***kedu**/
line(35,180,40,180);
line(35,140,40,140);
line(35,100,40,100);
line(40,360,40,365); /*******flow*******X****kedu**/
line(140,360,140,365);
line(240,360,240,365);
line(340,360,340,365);
line(440,360,440,365);
line(40,200,40,205); /********paw******X****kedu***/
line(140,200,140,205);
line(240,200,240,205);
line(340,200,340,205);
line(440,200,440,205);
/********************************************************************/
/**************shangxianxiaxian************************/
setcolor(15); /********canshushangxianxiaxian*****/
line(600,85,610,85); /********oo**********/
line(585,105,595,105);
line(595,105,600,85);
line(600,160,610,160); /**********vt******/
line(585,180,595,180);
line(595,180,600,160);
line(600,250,610,250); /********p**********/
line(585,270,595,270);
line(595,270,600,250);
line(600,340,610,340); /********mv*******/
line(585,360,595,360);
line(595,360,600,340);
/*************************************************************/
/**********************************************************************/
setcolor(15); /*********time***********/
settextstyle(2,0,7);
outtextxy(495,15,"Time");
settextstyle(2,0,5);
outtextxy(500,40,"15:30");
setcolor(5); /**********dianchi**********/
setfillstyle(1,5);
rectangle(585,23,610,33);
rectangle(590,20,593,23);
rectangle(602,20,605,23);
floodfill(586,24,5);
floodfill(591,21,5);
floodfill(603,21,5);
setcolor(8);
settextstyle(2,0,4);
outtextxy(589,23,"+");
outtextxy(602,23,"-");
setcolor(4); /***********dianyuan*********/
setfillstyle(1,4);
bar(590,42,603,52);
rectangle(585,44,590,46);
rectangle(585,48,590,50);
circle(603,47,5);
floodfill(586,45,4);
floodfill(586,49,4);
floodfill(604,48,4);
bar(607,46,610,49);
/**********************************************************/
/****************************zifushuchushezhibufen****************/
setcolor(15); /*******muoshizitixuanze***/
settextstyle(2,0,9);
outtextxy(55,20,"PCV");
setcolor(15); /*****paw****tuxingshezhibufen***/
settextstyle(2,0,5);
outtextxy(10,70,"V/p");
outtextxy(15,95,"40");
outtextxy(15,135,"20");
outtextxy(20,175,"0");
outtextxy(10,195,"-10");
outtextxy(38,210,"0");
outtextxy(138,210,"2");
outtextxy(238,210,"4");
outtextxy(338,210,"6");
outtextxy(438,210,"8");
outtextxy(455,200,"T/s");
outtextxy(7,240,"FLOW"); /*********flow***tuxingshezhibufen***/
outtextxy(15,255,"80");
outtextxy(20,295,"0");
outtextxy(10,335,"-80");
outtextxy(8,355,"-120");
outtextxy(38,370,"0");
outtextxy(138,370,"2");
outtextxy(238,370,"4");
outtextxy(338,370,"6");
outtextxy(438,370,"8");
outtextxy(455,360,"T/s");
setcolor(0);
settextstyle(2,0,9); /*****canshuzhi***shezhibufen****/
outtextxy(35,400,"20");
outtextxy(215,400,"12");
outtextxy(300,400,"1:2");
outtextxy(480,400,"-2");
settextstyle(2,0,7); /*********canshu***shezhibufen***/
outtextxy(30,440,"Pmax");
outtextxy(210,440,"Freq");
outtextxy(300,440,"Ti:Te");
outtextxy(485,440,"Pps");
setcolor(15);
settextstyle(2,0,7);
outtextxy(495,70,"FiO"); /**************oo***********/
outtextxy(550,80,"40");
outtextxy(500,130,"Vt"); /**************vt*********/
outtextxy(540,155,"515");
outtextxy(500,220,"P"); /****************p*********/
outtextxy(550,245,"15");
outtextxy(500,310,"MV"); /************MV*************/
outtextxy(545,335,"8.1");
settextstyle(2,0,3); /**************oo2*************/
outtextxy(530,80,"2");
settextstyle(2,0,4); /***********oo2***********/
outtextxy(615,80,"95");
outtextxy(615,100,"21");
outtextxy(615,155,"950"); /***********vt**********/
outtextxy(615,175,"50");
outtextxy(615,245,"40");
outtextxy(615,265,"2");
outtextxy(615,335,"15"); /*********MV************/
outtextxy(615,355,"0");
sleep(5);
getch();
}