Posts

Showing posts from April, 2020
Image
How to fix output related problems ? If your system is not giving any output after compiling the source code, then follow the given steps. As you can see in initgraph( ),there is a term, "c:\\tc\\bgi"   this is basically a driver_directory _path where all the graphic driver files are located. But there is a little problem due to which the source code is not giving any output after compiling the code, and you can fix this problem by copying all files of bgi folder to bin  folder. for your  convenience and simplicity,  I am providing you some screenshots of the whole process Here I am using YOGISOFT c++, if you are using TURBO c++ or DEV c++, the process is the same for all compilers, some files may differ in other compilers. But we shouldn't worry about it simply go to C drive and go to c++ folder and then go to tc folder, click on bgi folder and copy all the files of bgi folder to bin folder.  click on your local disk or c drive

Graphics with c/c++

Image
Graphics with c/c++............... In this type of programming, we can draw different kinds of geometrical shapes circle, rectangle, square, lines, etc with different colors .we can also create animation and games by writing and compiling some programming code with the help of c/c++ compiler So here i am trying to provide you some important point which we will use in whole graphics programming  #include<graphics.h> * graphics.h library function is used to include and facilitate graphical operation in the program  * there are many predefined functions in graphics.h library,such as line( ),circle( ),arc( ) and many more function .we will use these functions according to the need and requirement. The main programming section to initialize the graph................ gd - gd means graphic driver gm - gm means graphic mode, which is a computer display mode that generates images using pixels DETECT - DETECT is a macro defined in " graphics.h "