+ 12
How could we use graphics in C++?
graphics in c++
26 Respostas
+ 21
by including <grphics.h> library you can deal with graphics and for more refer this links
http://www.cplusplus.com/forum/beginner/98083/
https://www.quora.com/How-can-I-add-graphic-h-directory-in-Dev-C++
https://stackoverflow.com/questions/20313534/how-to-use-graphics-h-in-codeblocks
+ 9
https://code.sololearn.com/cJpy8Xp3b2zo/?ref=app
use graphics.h header file and use its function to design yor graphics. ex. putpixel()
for further reference visit github.
try the above code in dev c++
Output of this program will be a RED pixel on screen at (25, 25) .
+ 8
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"");
line(0,0,100,100);
getch();
closegraph();
}
//if this is not working (initgraph(&gd,&gm,"");
//then
//use this initgraph(&gd,&gm,"c:\\tc\\bgi");
//or else use this initgraph(&gd,&gm,"c:\\turboc3\\bgi");
//try these hopefully it will work
+ 7
😃
+ 7
can I done this above task with the help of turbo c++ app🤔🤔🤔🤔
+ 4
hi abhishek goswami. if you want to make an .exe app. with a icon.
then use devc++ or visual studio. then create project accourding to your requirements. you will be getting some option to choose from. ex. empty project, windows project, terminal project like that. when you will chose one, the basic codes will already included in the file, for your help. once you will try then it will get easy for you.
+ 4
turbo and dev are different environments. to compile your code.
i feel more comfortable in dev/visual studio.
+ 4
nitesh so according to you its better not to use android studio to develop an android app. you can use eclipse or intellij too to develop android app. but when you use android studio your limitations decreases and managing your coding get easier. same applies to turbo.
for learning purpose turbo is better. no doubt. but when you devloping a project. where huge amount of coding needed. using turbo its become complex. so you have to move at one point.
+ 3
thanks@gawen
+ 3
take a look at openGL library
+ 3
wow... this programming is really work
thanks ARIF😃😃😃😊😊😊🤗🤗🤗
+ 3
sudipta nath
I have a doubt relating c++
I wants to know that what is difference bt turbo c++
& Dev c++
+ 3
ooo
thank bro😄😄😄
+ 3
you welcome. i suggest you to try other c++ plateform, like dev or vstudio. you will love to code there.
+ 2
use graphics.h header
+ 1
turbo c++ is more easier to use as per visual studio...but problem is that you should know what to do by yourself.
no help, no tutorial offers by turbo c++ while it's graphics and workplace is amazing for a well known coder.
+ 1
:|
+ 1
hii priya
0
I am with u on same question
0
hii