+ 1

How to make a simple circle on turbo c on this app

I'm not able to get output if anyone can help Please #include<iostream.h> #include<graphics.h> #include<conio.h> int main() { clrscr() int gd=DETECT, gm: initgraph(&gd,&gm, "C:/URBOCA circle(200,200, 100); getch(); closegraph(); restorecrtmode(); return 0: }

2nd Sep 2020, 5:08 PM
Chang Gamer
Chang Gamer - avatar
10 Réponses
+ 7
Chang Gamer paste this Path int gd=DETECT,gm; initgraph(&gd,&gm,"C:\\TC\\bgi");
2nd Sep 2020, 5:15 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 6
The header file graphics.h contains circle() function which draws a circle with center at (x, y) and given radius. circle(x, y, radius); where, (x, y) is center of the circle. 'radius' is the Radius of the circle. #include <graphics.h> int main() {  int gd=DETECT,gm; initgraph(&gd,&gm,"C:\\TC\\bgi");     circle(250, 200, 50);     getch();     closegraph();     return 0; }
2nd Sep 2020, 5:10 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 5
ཞıɬıƙą ɱıʂɧཞą are you sure? I don't see any mention of colors :) Anyway I meant this as a joke only. 1. The question is poorly formulated 2. The asker did not attach any code of his own, to give a minimal context 3. It is not possible to use graphics on SoloLearn platform.
2nd Sep 2020, 5:25 PM
Tibor Santa
Tibor Santa - avatar
+ 5
Tibor Santa he posted code now he mentioned for turbo c Compiler.
2nd Sep 2020, 5:29 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 4
Chang Gamer your path in not correct
2nd Sep 2020, 5:13 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 4
A simple circle : printf("o"); 😅
2nd Sep 2020, 5:16 PM
Tibor Santa
Tibor Santa - avatar
+ 4
Tibor Santa sir this will print in black screen he asking in color using graphics
2nd Sep 2020, 5:22 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 4
Chang Gamer yes you can download turbo c Compiler on phone
2nd Sep 2020, 5:31 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Thanks for responding but it still not working
2nd Sep 2020, 5:25 PM
Chang Gamer
Chang Gamer - avatar
0
Is it possible on mobile
2nd Sep 2020, 5:30 PM
Chang Gamer
Chang Gamer - avatar