Questions tagged [bgi]

Borland graphics interface (graphics.h) is a legacy library for 2D graphics similar to nowadays GDI.

Borland graphics interface (graphics.h)

  • is an old legacy library for 2D graphics similar to nowadays
  • was widely used with Borland IDE's like Turbo Pascal or Turbo C++
  • is still used in some schools
392 questions
-2
votes
3 answers

not able to run graphics in DEV C++

Unable to run the graphics from following process in DEV C++ process Install DevC++. I installed from the Version 4.9.9.2 Setup File. Download graphics.h to the include/ subdirectory of the Dev-C++ directories. Download libbgia. to the lib/ In order…
user2556064
  • 27
  • 1
  • 1
  • 3
-3
votes
1 answer

Is there a way you can print text in console letter by letter in C++ using graphics?

I'm trying to make a game in C++ using graphics. I'm using code blocks. I'm trying to make a screen where the player tells his/her name or username. I want to make each letter they press appear but I can't. This is what I've done so far void…
-3
votes
1 answer

How to make it look like falling snow?

I have tried to make it look like falling snow but snow is coming from everywhere and I have to make falling snow from library graphics.h. I don't know how to make it move but I already add x and y. For int speed I don't know to use it I see from…
alfein
  • 1
  • 2
-3
votes
1 answer

No output in C++ program while trying to make a rectangle

I have just started graphics in C++ and was making a simple program to create a rectangle but no output screen is coming even though i have used getch(). can someone please tell me what i am doing wrong. #include #include void…
-3
votes
1 answer

What can I do if code::blocks shows error when I try to use graphics.h for c/c++?

Today I tried to write a code using graphics.h in code::blocks. But instead of showing appropriate result, it showed "no such file or directory". But, isn't graphics.h is one of the header file of c/c++? So, if there is any solution, tell me what to…
-3
votes
1 answer

How Do I include graphics.h in Codelite?

Is There a way to include graphics.h library in Codelite? I don't want to use CodeBlocks or Devc++. I need it for my university project. I know how to include it in CodeBlocks and Devc++ but there are a lot of errors when I use my old code I Wrote…
Alireza Fa
  • 131
  • 6
-3
votes
1 answer

Give Changing Different colors to a shape

Were working on a family feud game and i wanted to apply changing colors to a group of circles randomly i tried using for loop in this given code, but i know its wrong. how do i randomize? //looping set1 for(x=0;x<=15;x++) { setcolor(x); …
Mirisu
  • 3
  • 4
-3
votes
2 answers

How do I use graphics functions in CUDA?

I want to use basic functions like putpixel, initwindow in CUDA. How do I do it?
gaurav95
  • 13
  • 7
-3
votes
1 answer

How can I read from a file having numbers seperated by "\n" in C

I am writing a program on Cash Management System and I'm stuck with file handling. Its a long program broken into short pieces by using Functions. The problem is that I am creating a file which will keep the record of reciept cash, I'm suceesfull in…
-4
votes
1 answer

Computer Graphics in mac

I have to learn computer graphics, but in my macbook-air libraries like conio.h, graphics.h are not working. What should I do to run it without problem??
-4
votes
2 answers

divide error in C

I have a graphics program which has some computations in it. its not giving any errors but after the program is run, its giving 6/4 divide error. Can anyone help me with…
Pooja N Babu
  • 347
  • 3
  • 5
  • 15
-4
votes
1 answer

Missionaries and cannibals problem In C++

I've been searching for Missionaries and cannibals problem solving. After lots of searching, I finally reached the code below, but it shows some errors while compiling. I changed #include to #include and added using namespace…
-4
votes
2 answers

depecrated conversion from string constant to 'char*'

What's wrong with this code? #include #include #include int main() { int gd = DETECT, gm; initgraph(&gd, &gm, ""); /* this is where the error it says */ } and it says this error: warning:…
ndrhmt
  • 1
  • 1
  • 2
-4
votes
3 answers

How do I do graphics easily in a modern linux?

Here is an example of the sort of C program one could write in the old days: #include #include #include #include void main() { int gd=DETECT, gm; initgraph(&gd, &gm, "c:\\turboc\\bgi"); …
John Lawrence Aspden
  • 17,124
  • 11
  • 67
  • 110
-5
votes
1 answer

3D or 2D graphics in c/c++?

I need to construct a circuit from a structural program and break it and interchange the parts. I was wondering how do I do that in C++/C?I try drawing graphics using graphics.h line by line,circle by circle its s time consuming!!! Is there any…
LoveMeow
  • 3,858
  • 9
  • 44
  • 66
1 2 3
26
27