C++ Graphics program analog clock

preview_player
Показать описание
This program shows how to make an Analog Clock in C++ using graphics.h !

Music by: NCS
Alan Walker - Fade [NCS Release]
Рекомендации по теме
Комментарии
Автор

i am using the code for create analog clock. it is working fine. Thank you for your guidance.

alagu
Автор

Bestest video ever 😘😘🙏🙏 thank you very much sir

YashDubey
Автор

You have written a good informative and entertaining program for yourself and others. First of all I am not an expert to say on your lines. Can I get a copy.

ahmedbaig
Автор

It's very nice 🙂 sir

But i got 1 error thats is calcpoints should have prototype plse tell me

offline
Автор

at line 101 in sc, change it to line(midx, midy, secx[sec], secy[sec]);

thanks bro..

noorrandi
Автор

its getting error in
midx = getmaxx()/2;
midy = getmaxy()/2;

what to do... i did with ur program only

ajaysunny
Автор

What have you typed in the line 47 it's not clear

dimaanshupooniya
Автор

Impressive, wounder how you made the lines follow the circle.

Swqyme
Автор

i have run it many times no error showing but didnt getting the output rather i have written getch in the end of the program
on running it showing pass 2 for a moment whats its mean bro

vijaybhai
Автор

you have no output so using turbo- c good job brother

YENETUBETEDY
Автор

Hlw sir I want to change the centre pt of circle how can I do

shyamrathi
Автор

How can I print the nos. Somebody please help. My clock is just a round circle with the hands. Please help.

OjaswiOm-yu
Автор

I'm using code blocks but after compiling I am getting an error in the line #include <graphics.h>.
Can any one of you help me. I need this program urgent.

diptiray
Автор

what programs are you emulating with dosbox

TheSirtempest
Автор

The program in not running though it has compiled successfully but while running the program it is not executing the program on the screen.... Plz help

bdzzzmk
Автор

error is comming in line 5 #include <graphics.h>

Brightpurnea
Автор

I have written same program and checked multiple time but it have many errors . What to do can you plz help me ?

abhiplays_
Автор

To get rid of flicker don't call cleardevice();

setcolor(BLACK);
line(midx, midy, secx[sec], secy[sec]);
sec = data->tm_sec % 60;
setcolor(WHITE);
line(midx, midy, secx[sec], secy[sec]);

if (sec == 0)
{
setcolor(BLACK);
line(midx, midy, minx[min], miny[min]);
}
min = data->tm_min % 60;
setcolor(WHITE);
line(midx, midy, minx[min], miny[min]);

if (min == 0)
{
setcolor(BLACK);
line(midx, midy, hrx[hr], hry[hr]);
}
hr = data->tm_hour % 12;
setcolor(WHITE);
line(midx, midy, hrx[hr], hry[hr]);
delay(1000);
/* cleardevice(); < causes flicker */

Brock-Landers
Автор

What's the name of background music? ^ ^

AhmedAsaKetup
Автор

why is there no output? i also use turbo c.

liroiquindara
visit shbcf.ru