hey guys, i need some real bad help for my c++ project......i'm making an analog clock in C++ graphics.........n my clock works just fine, except for the fact that i haven't as yet added an hour hand, :rolleyes: and yeah..my minute hand runs almost as fast as my second hand.:lol:.....plzzzzzzzzzzzz get me outta this, i need ur help......:sad:
here's my program..........
p.s.-leave alone the initial few lines, they're just an intro, meant for my teacher..........
n yeah, guys, i'm in an indian school, in XI standard, so my project's supposed to be pretty easy........so plzzzzzzzz make corrections in my project while keeping it in my brain's reach.....all i ask is tht u guys keep it easy...........
this is my program.............
#include<iostream.h>
#include<graphics.h>
#include<dos.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm,i,j,x,a,b,c,d,e,f;
initgraph(&gd,&gm," ");
{
setcolor(4);
setbkcolor(0);
settextstyle(4,0,6);
for(a=0;a<=750;a=a+25)
for(b=0;b<=7;b++)
{
{
setcolor(b);
sound(100);
delay(50);
outtextxy(a,a,"COMPUTER PROJECT");
}
clearviewport();
}
for(c=0;c<=350;c=c+5)
for(d=0;d<=7;d++)
{
setcolor(d);
sound(50);
outtextxy(250,250,"made by kanika");
outtextxy(250,300,"and simran");
rectangle(260-c,400-c,200-c,250+c);
}
clearviewport();
{
for(f=0;f<=700;f=f+3)
for(e=0;e<=7;e++)
{
setcolor(e);
circle(360,250,f);
outtextxy(100,230,"AnAlOg ClOcK");
}
}
clearviewport();
nosound();
circle(290,250,200);
outtextxy(260,40,"12");
outtextxy(180,65,"11");
outtextxy(120,135,"10");
outtextxy(100,210,"9");
outtextxy(120,280,"8");
outtextxy(180,350,"7");
outtextxy(260,390,"6");
outtextxy(360,350,"5");
outtextxy(440,280,"4");
outtextxy(460,210,"3");
outtextxy(440,135,"2");
outtextxy(360,65,"1");
for(j=360;j>=0;j=j-5)
for(i=450;i>=0;i=i-5)
{
{
setcolor(4);
setbkcolor(0);
delay(50);
pieslice(290,250,i,i--,100);
setfillstyle(0,0);
floodfill(290,250,0);
circle(290,250,100);
{
delay(300);
pieslice(290,250,j,j--,50);
}
}
}
}
}
getch();
kanika