traffic light program in c
traffic light program in c
Traffic light program in c
#include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h>
main() { int gd = DETECT, gm, midx, midy;
initgraph(&gd, &gm, “C:\\TC\\BGI”);
midx = getmaxx()/2; midy = getmaxy()/2;
setcolor(RED); settextstyle(SCRIPT_FONT, HORIZ_DIR, 3); settextjustify(CENTER_TEXT, CENTER_TEXT); outtextxy(midx, midy-10, “Traffic Light Simulation”); outtextxy(midx, midy+10,…
View On WordPress












