| | |
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 20 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 adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi






