+ 12

How could we use graphics in C++?

graphics in c++

11th Sep 2017, 7:42 AM
Swati
Swati - avatar
26 Respuestas
11th Sep 2017, 7:45 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 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) .
25th Sep 2017, 6:02 PM
Sudipta Kumar Nath
Sudipta Kumar Nath - avatar
+ 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
25th Sep 2017, 7:29 PM
ARIF
ARIF - avatar
+ 7
😃
25th Sep 2017, 5:01 PM
Swati
Swati - avatar
+ 7
can I done this above task with the help of turbo c++ app🤔🤔🤔🤔
27th Sep 2017, 5:57 PM
Swati
Swati - avatar
+ 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.
27th Sep 2017, 5:42 PM
Sudipta Kumar Nath
Sudipta Kumar Nath - avatar
+ 4
turbo and dev are different environments. to compile your code. i feel more comfortable in dev/visual studio.
27th Sep 2017, 6:06 PM
Sudipta Kumar Nath
Sudipta Kumar Nath - avatar
+ 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.
27th Sep 2017, 6:22 PM
Sudipta Kumar Nath
Sudipta Kumar Nath - avatar
+ 3
thanks@gawen
11th Sep 2017, 7:47 AM
Swati
Swati - avatar
+ 3
take a look at openGL library
13th Sep 2017, 3:55 PM
esmaeel ensanimehr
esmaeel ensanimehr - avatar
+ 3
wow... this programming is really work thanks ARIF😃😃😃😊😊😊🤗🤗🤗
27th Sep 2017, 5:52 PM
Swati
Swati - avatar
+ 3
sudipta nath I have a doubt relating c++ I wants to know that what is difference bt turbo c++ & Dev c++
27th Sep 2017, 5:55 PM
Swati
Swati - avatar
+ 3
ooo thank bro😄😄😄
27th Sep 2017, 6:08 PM
Swati
Swati - avatar
+ 3
you welcome. i suggest you to try other c++ plateform, like dev or vstudio. you will love to code there.
27th Sep 2017, 6:13 PM
Sudipta Kumar Nath
Sudipta Kumar Nath - avatar
+ 2
use graphics.h header
25th Sep 2017, 5:00 PM
Divyanshu Pateria
Divyanshu Pateria - avatar
+ 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.
27th Sep 2017, 6:13 PM
Nitesh Solanki
Nitesh Solanki - avatar
+ 1
:|
27th Sep 2017, 8:51 PM
Reza Khani
Reza Khani - avatar
+ 1
hii priya
29th Sep 2017, 12:12 PM
J.Balaji
J.Balaji - avatar
0
I am with u on same question
26th Sep 2017, 5:54 PM
Abhishek Goswami
Abhishek Goswami - avatar
0
hii
26th Sep 2017, 6:45 PM
J.Balaji
J.Balaji - avatar