Ben bu kadarini yaptim umarim siz daha da gelistire bilirsiniz .Inanin
ki sinavlar omasa daha cok oyunlar yazarim
#include
#include
#include
#include
#include
int gdriver = 0, gmode=15, errorcode;
**** graphkur(****)
{ /* request auto detection */
/* initialize graphics mode */
initgraph(&gdriver, &gmode, "C:\\borlandc\\bgi");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); /* return with error code */
}
closegraph();
}
**** mas(int a[],int n);
int main(****)
{ graphkur();
initgraph(&gdriver, &gmode, "C:\\borlandc\\bgi");
//************************************************** ********
int x,l,y,r,i=1,a[100],n,m;
x=getmaxx()/2;
y=getmaxy()/2;
r=getmaxy()/2;
n=12;
m=360/n;
setbkcolor(5);
for(l=160;l<=440;l++)
{ rectangle(10,10,600,455);
rectangle(20,20,595,450);
rectangle(150,300,455,340);
rectangle(155,305,450,335);
setcolor(l);
line(l+i,315,l+i,325);
//setcolor(0);
//line(l-10,315,l-10,325);
setcolor(12);
settextstyle(5,0,2);
outtextxy(154,160, " Memmedov Mehman");
outtextxy(160,190, " Komputer Sciense");
outtextxy(162,200, " Network Systems");
setcolor(14);
outtextxy(130,270,"HELICOPTER CORPORATION PRESENTS ");
delay(10);
}
setfillstyle(0,0);
bar(0,0,650,500);
setbkcolor(0);
for(i=0;i
a[i]=i+i;
do{
for(i=0;i
{ sound(100*a[i]);delay(0);nosound();
setfillstyle(1,a[i]);
setcolor(0);
sector(x,y,i*m,i*m+m,150,15);
//********* Arxa per*************//
setfillstyle(1,a[i]);
sector(x-20,y-75,i*m,i*m+m,3,15);
setfillstyle(1,1);
sector(x-3,y-75,90,270,20,2);
delay(1);
}
mas(a,n);
//*************** Quyruq *********//
setfillstyle(1,9);
sector(x,y+20,0,180,10,100);
//*************** Qanadlar*********//
setfillstyle(1,9);
sector(x,y+60,0,180,140,10);
//********** Qanadin altindaki daireler***********//
setfillstyle(1,1);
sector(x-70,y+60,180,360,12,12);
sector(x-100,y+60,180,360,8,;
sector(x-120,y+60,180,360,4,4);
sector(x+70,y+60,180,360,12,12);
sector(x+100,y+60,180,360,8,;
sector(x+120,y+60,180,360,4,4);
//**************ust*********//
setfillstyle(1,1);
sector(x,y+30,0,180,5,30);
/**** susenin ustu ***************/
setfillstyle(1,6);
sector(x,y+60,0,180,30,45);
//*****************En alt ****************//
setfillstyle(1,9);
sector(x,y+60,180,360,40,45);
}while(!kbhit());
//************************************************** ********
getch();
closegraph();
return 0;
}
**** mas(int a[],int n)
{ int c,j;
c=a[n-1];
for(j=n-1;j>0;j--)
a[j]=a[j-1];
a[0]=c;
}
ki sinavlar omasa daha cok oyunlar yazarim
#include
#include
#include
#include
#include
int gdriver = 0, gmode=15, errorcode;
**** graphkur(****)
{ /* request auto detection */
/* initialize graphics mode */
initgraph(&gdriver, &gmode, "C:\\borlandc\\bgi");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); /* return with error code */
}
closegraph();
}
**** mas(int a[],int n);
int main(****)
{ graphkur();
initgraph(&gdriver, &gmode, "C:\\borlandc\\bgi");
//************************************************** ********
int x,l,y,r,i=1,a[100],n,m;
x=getmaxx()/2;
y=getmaxy()/2;
r=getmaxy()/2;
n=12;
m=360/n;
setbkcolor(5);
for(l=160;l<=440;l++)
{ rectangle(10,10,600,455);
rectangle(20,20,595,450);
rectangle(150,300,455,340);
rectangle(155,305,450,335);
setcolor(l);
line(l+i,315,l+i,325);
//setcolor(0);
//line(l-10,315,l-10,325);
setcolor(12);
settextstyle(5,0,2);
outtextxy(154,160, " Memmedov Mehman");
outtextxy(160,190, " Komputer Sciense");
outtextxy(162,200, " Network Systems");
setcolor(14);
outtextxy(130,270,"HELICOPTER CORPORATION PRESENTS ");
delay(10);
}
setfillstyle(0,0);
bar(0,0,650,500);
setbkcolor(0);
for(i=0;i
a[i]=i+i;
do{
for(i=0;i
{ sound(100*a[i]);delay(0);nosound();
setfillstyle(1,a[i]);
setcolor(0);
sector(x,y,i*m,i*m+m,150,15);
//********* Arxa per*************//
setfillstyle(1,a[i]);
sector(x-20,y-75,i*m,i*m+m,3,15);
setfillstyle(1,1);
sector(x-3,y-75,90,270,20,2);
delay(1);
}
mas(a,n);
//*************** Quyruq *********//
setfillstyle(1,9);
sector(x,y+20,0,180,10,100);
//*************** Qanadlar*********//
setfillstyle(1,9);
sector(x,y+60,0,180,140,10);
//********** Qanadin altindaki daireler***********//
setfillstyle(1,1);
sector(x-70,y+60,180,360,12,12);
sector(x-100,y+60,180,360,8,;
sector(x-120,y+60,180,360,4,4);
sector(x+70,y+60,180,360,12,12);
sector(x+100,y+60,180,360,8,;
sector(x+120,y+60,180,360,4,4);
//**************ust*********//
setfillstyle(1,1);
sector(x,y+30,0,180,5,30);
/**** susenin ustu ***************/
setfillstyle(1,6);
sector(x,y+60,0,180,30,45);
//*****************En alt ****************//
setfillstyle(1,9);
sector(x,y+60,180,360,40,45);
}while(!kbhit());
//************************************************** ********
getch();
closegraph();
return 0;
}
**** mas(int a[],int n)
{ int c,j;
c=a[n-1];
for(j=n-1;j>0;j--)
a[j]=a[j-1];
a[0]=c;
}