[IT] (no subject)
Vuong Loi
it02th04@redhat.polarhome.com
Wed, 18 Dec 2002 04:41:51 +0700
This is a multi-part message in MIME format.
------=_NextPart_000_001E_01C2A64F.C8747DE0
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_001F_01C2A64F.C8747DE0"
------=_NextPart_001_001F_01C2A64F.C8747DE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Loi gui cho cac ban chuong trinh ve hinh chu nhat day,Nho la phai chay o =
trong dos
Co gi gop y cho no ngan lai ha!
bye!
------=_NextPart_001_001F_01C2A64F.C8747DE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVNI-Times>Loi gui cho cac ban chuong trinh ve hinh chu =
nhat=20
day,Nho la phai chay o trong dos</FONT></DIV>
<DIV><FONT face=3DVNI-Times>Co gi gop y cho no ngan lai ha!</FONT></DIV>
<DIV><FONT face=3DVNI-Times>bye!</FONT></DIV></BODY></HTML>
------=_NextPart_001_001F_01C2A64F.C8747DE0--
------=_NextPart_000_001E_01C2A64F.C8747DE0
Content-Type: application/octet-stream;
name="Hcn.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="Hcn.cpp"
#include "stdio.h"
#include "conio.h"
#include "graphics.h"
#include "dos.h"
void main()
{
clrscr();
int mh=VGA,mode=VGAHI;
int maunen,mauve,x1,y1,x2,y2;
initgraph(&mh,&mode,"");
maunen=0;mauve=15;
printf("\nNhap toa do goc tren ben trai cua hinh chu nhat:\n");
scanf("%d%d",&x1,&y1);
setbkcolor(0);
setfillstyle(0,0);
bar(0,0,639,479);
do
{
delay(1000);
x1=x1+30;y1=y1+30;
x2=x1+100;y2=y1+100;
mauve--;
if(mauve==0)
mauve++;
if(maunen==mauve)
mauve++;
setbkcolor(maunen);
setfillstyle(1,maunen);
bar(x1-30,y1-30,x2-30,y2-30);
setfillstyle(1,mauve);
bar(x1,y1,x2,y2);
}
while(y1<479);
}
------=_NextPart_000_001E_01C2A64F.C8747DE0--