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
-1
votes
1 answer

How to draw shapes, lines, and arcs with c++

I'm working on a program that calculates the Recaman Sequence. I'm trying to graph it by drawing arcs like in numberphile. I've searched YouTube and there are videos on graphics.h. However, I've heard graphics.h is outdated. Is there a new thing…
programmerRaj
  • 1,810
  • 2
  • 9
  • 19
-1
votes
1 answer

Not able to compile C++ program with libbgi.a on Netbeans (Cygwin)

I am trying to compile an old graphics.h based animation program. I downloaded libbgi.a and its associated header files from WinBGIm and followed instructions from here (It was for Codeblocks but I tried to follow similar steps for Netbeans). When I…
kiner_shah
  • 3,939
  • 7
  • 23
  • 37
-1
votes
2 answers

Codeblocks isn't showing graphics window

I have tried to learn about graphics using codeblocks , and have initialized the graphics header to my library , every graphics code builds and compiles , and shows : Process returned -1073741819 (0xC0000005) execution time : 2.776 s Press any key…
-1
votes
1 answer

BGI error: Graphics not initialized ( use "initgraph")

my bgi path is C:\TURBOC3\BGI but it is not working.i already tried the suggestion
-1
votes
1 answer

Warnings are being treated as errors in Codeblocks 16.01

I am trying to build a cpp program in codeblocks, that includes graphics.h file in it. But I am getting a warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] initgraph(&gd, &gm, ""); The warning is…
Rubin Shah
  • 73
  • 1
  • 8
-1
votes
1 answer

there is an error with compilation of graphics.h

I downloaded header files and library files for DevC++. After placing the right thing in right place, there is error in compilation with graphics.h. -Well this is the error I copied " 302 27 C:\Program Files…
-1
votes
2 answers

How do I can call initgraph more than one time?

Please look at the following code: #include #include #include using namespace std; void drawrect() { int gdriver = IBM8514, gmode; initgraph(&gdriver, &gmode, ""); rectangle(500, 500, 700, 700); …
-1
votes
1 answer

turbo c++ graphics.h program on android studio NDK

I have a got a c++ program having graphics.h can i use this program to make an android app in android studio. As i know c++ programs can run using android NDK,but it shows graphics.h not found.
-1
votes
1 answer

How to know all the 6 hexagon vertices given two vertices only?

I am trying to let the program draw a hexagon, The program should let the user enter the coordinates of two points only, I will assume those points are the terminals of a side, then I need to calculate the coordinates of other four points, but how?…
A..
  • 17
-1
votes
1 answer

"Type mismatch in parameter" when using setfillpattern()?

I have started working on a C project to build a PacMan game, but I am getting an error when I execute below code. The error is generated by Code::Blocks as well as Turbo C++ 3.5. In Code::Blocks I remove the path which is "C:\TurboC3\BGI",but the…
Harsh patel
  • 445
  • 5
  • 11
-1
votes
1 answer

Turbo C++ GCC Compiler

I'm currently developing a gui application in turbo c++ (mandatory) for a project using C language, and i need to invoke turbo c++'s compiler(gcc), my question is HOW DO I CALL IT? i can't find any sources in the internet regarding this. here's a…
jyves
  • 1
  • 1
-1
votes
1 answer

Midpoint Circle algorithm not working for unequal center coordinates

My midpoint circle algorithm C Program is given below: #include #include #include #include void cir(int,int,float); void main() { int gd=DETECT; int gm=DETECT; int x1,y1; float r; …
-1
votes
3 answers

Graphics.h Not Working in VS Code version 1.15.1

Context Language : C++ , Editor : Microsoft Visual Studio Code Version 1.15.1 Problem I am using Microsoft Visual Studio Code Version 1.15.1 for Compiling my C++ Programs. I want to use Graphics.h to use Graphics in my C++ Programs. That's why I…
Himanshu
  • 17
  • 1
  • 1
  • 2
-1
votes
1 answer

draw a sine wave using c?

#include #include #include #include int main() { int gd = DETECT, gm; int angle = 0; double x, y; initgraph(&gd, &gm, "C:\\TC\\BGI"); line(0, getmaxy() / 2, getmaxx(), getmaxy() /…
Sudhir Sharma
  • 137
  • 1
  • 1
  • 11
-1
votes
1 answer

Loading graphic files

#include //importing graphics #include int main() { int gd=0,gm; initgraph(&gd,&gm," "); circle(100,80,20); getch(); closegraph(); } I typed the above code in Code::Blocks but it does not execute and…