1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#define r rectangle
#define a outtextxy
#define b settextstyle
int main()
{
int gm,gd;
gd=VGA;
gm=VGAHI;
initgraph(&gd,&gm,"");
/*HYDROGEN (H)*/
b(SMALL_FONT,HORIZ_DIR,2);
a(32,8,"1");a(32,20,"H");a(32,30,"Hydrogen");
r(30,7,65,40);
/*LITHIUM (Li)*/
a(32,41,"3");a(32,52,"Li");a(32,63,"Lithium");
r(30,40,65,81);
/*BERYLLIUM (Be)*/
a(67,40,"4");a(67,50,"Be");a(67,63,"Beryllium");
r(65,40,100,81);
getch();
closegraph();
}
|