| | |
No such file or directory
![]() |
•
•
Join Date: Apr 2005
Posts: 129
Reputation:
Solved Threads: 0
C Syntax (Toggle Plain Text)
#include <conio.h> #include <graphics.h> #include <stdlib.h> #include <stdio.h> void main (int) { int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection. int midx,midy,x; //Initializing graphics and local variables. initgraph(&gdriver,&gmode,"d:\\bc3\\bgi"); //Reading result of initialization. errorcode=graphresult(); if(errorcode!=grOk) //An error occurred. { printf("Graphics error occurred : %s \n",grapherrormsg(errorcode)); printf("Press any key to stop : "); getch(); exit(1); //Terminate the program due to error. } /*Changing the foreground color. Note : Press enter to exit the last screen as it is black and it may appear as if the program has stopped running.*/ for(x=15;x>=0;x--) { setcolor(x); circle(20+(x*40),200,15);/*Changing x-coordinate by 50 each time so that the circles do not overlap.*/ getch(); } cleardevice(); //Clearing the screen in the graphics mode. circle(200,200,50); getch(); closegraph(); }
i have one erorr
fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory
Error executing cl.exe.
please help
•
•
•
•
Originally Posted by some one
thanks you mean that i can not use this library
would you give me another one please
you can also call win32 api functions to draw graphics. I think you can find several tutorials if you google for them.
There is also QT, which is a os-independent way of going graphics. Free for home use, but not free for commercial use.
•
•
•
•
Originally Posted by some one
sorry but i do not know how to make what you say
i want this program to design my program which written in c++ language
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
-2
#9 21 Days Ago
•
•
•
•
C Syntax (Toggle Plain Text)
#include <conio.h> #include <graphics.h> #include <stdlib.h> #include <stdio.h> void main (int) { int gdriver=DETECT,gmode,errorcode; //Requesting auto-detection. int midx,midy,x; //Initializing graphics and local variables. initgraph(&gdriver,&gmode,"d:\\bc3\\bgi"); //Reading result of initialization. errorcode=graphresult(); if(errorcode!=grOk) //An error occurred. { printf("Graphics error occurred : %s \n",grapherrormsg(errorcode)); printf("Press any key to stop : "); getch(); exit(1); //Terminate the program due to error. } /*Changing the foreground color. Note : Press enter to exit the last screen as it is black and it may appear as if the program has stopped running.*/ for(x=15;x>=0;x--) { setcolor(x); circle(20+(x*40),200,15);/*Changing x-coordinate by 50 each time so that the circles do not overlap.*/ getch(); } cleardevice(); //Clearing the screen in the graphics mode. circle(200,200,50); getch(); closegraph(); }
i have one erorr
fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory
Error executing cl.exe.
please help
![]() |
Similar Threads
- mkdir() failed (No such file or directory) (PHP)
- I get the error no file or directory when i try to run a perl script (Perl)
- HTTP Error 404 - File or directory not found. (ASP.NET)
- fopen: No such file or directory (*nix Software)
Other Threads in the C Forum
- Previous Thread: Prime numbers from 1 to 100
- Next Thread: Problem with Bitwise Masking
| Thread Tools | Search this Thread |
#include * ansi array arrays asterisks binarysearch calculate centimeter changingto char character convert copyanyfile copyimagefile copypdffile creafecopyofanytypeoffileinc createprocess() database dynamic execv fflush fgets file floatingpointvalidation fork forloop function getlogicaldrivestrin givemetehcodez grade gtkwinlinux histogram homework i/o ide inches include infiniteloop input interest intmain() iso keyboard km license linked linkedlist linux list looping lowest matrix meter microsoft mysql number oddnumber open opendocumentformat openwebfoundation pdf pointer posix power probleminc process program programming pyramidusingturboccodes radix read recursion recv recvblocked research reversing scheduling segmentationfault send sequential single socket socketprogramming stack standard strchr string suggestions systemcall test threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windowsapi






