Results 1 to 5 of 5

Thread: c graphic programming

  1. #1
    Join Date
    Dec 2009
    Posts
    3

    Exclamation c graphic programming

    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

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: c graphic programming

    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.

  3. #3
    Join Date
    Dec 2009
    Posts
    3

    Re: c graphic programming

    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: c graphic programming

    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();
    }

  5. #5
    Join Date
    Dec 2009
    Posts
    3

    Re: c graphic programming

    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

Similar Threads

  1. Xml with C# in .NET programming
    By Remedy in forum Software Development
    Replies: 4
    Last Post: 03-03-2010, 08:10 PM
  2. GUI programming in C
    By Isdel in forum Software Development
    Replies: 3
    Last Post: 30-01-2010, 07:02 AM
  3. programming
    By smartboss194 in forum Software Development
    Replies: 2
    Last Post: 10-12-2009, 10:54 PM
  4. Socket programming: Is any new Programming Language?
    By Kushan in forum Software Development
    Replies: 3
    Last Post: 14-11-2009, 11:13 AM
  5. Replies: 3
    Last Post: 13-12-2008, 01:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,287,967.89958 seconds with 17 queries