i want to read an ascii file which contains 0 to 255 hexadecimal values .
i want to dispaly each number as a color on console using vga256 ie. 0 black...
255 white
iam using turbo c compiler....
please reply as early as possible
i want to read an ascii file which contains 0 to 255 hexadecimal values .
i want to dispaly each number as a color on console using vga256 ie. 0 black...
255 white
iam using turbo c compiler....
please reply as early as possible
If you know the basics of C, you can easily learn graphics programming. To run this program, you need graphics.h header file, graphics.lib library file and Graphics driver (BGI file) in the program folder. C is an efficient, widely used programming language created for the Unix operating system. These files are part of Turbo C package. In all our programs we used 640x480 VGA monitor. So all the programs are according to that specification. You need to make necessary changes to your programs according to your screen resolution.
yah sir i included all those but iam unable to get the output...
if you don`t mind pls send me some code regarding my specifications...
thanking u....
Last edited by bharath12345; 25-12-2009 at 09:55 AM.
Hey use the code given below for the ASCII value. Hope this will work for you. Go with it. Make the necessary change according to your program. Thank you
Code:void main() { int k; clrscr(); for(k=1;k<200;k++) {printf(â%d=%c\tâ,k,k);} getch(); }
thanks for u r code but i had already stored ascii values in file i want to display each one as color using graphics vga256
Bookmarks