Results 1 to 3 of 3

Thread: Graphics with C programming for Different shapes

  1. #1
    AndersonDiaz is offline Senior Member
    Join Date
    Dec 2009
    Posts
    311
    Rep Power
    3

    Default Graphics with C programming for Different shapes

    What is the graphics in C programming? How can I write code for circle, rectangle and Triangle? How can I make my application in C using graphics?

  2. #2
    TaylorRyan is offline Senior Member
    Join Date
    Dec 2009
    Posts
    307
    Rep Power
    3

    Default

    1) Creating circle in graphics in C:

    /* Sample program to draw a circle*/

    #include<graphics.h>

    #include<conio.h>

    main()

    {
    int gd=DETECT,gm;

    initgraph(&gd,&gm,""); /* initialization of graphic mode */

    circle(150,150,100);

    getch();

    closegraph(); /* Restore orignal screen mode */
    }

  3. #3
    ThomasBarnes is offline Senior Member
    Join Date
    Dec 2009
    Posts
    303
    Rep Power
    3

    Default

    C is mother language of the newer programming languages .It was designed to be compiled using a straightforward compiler that execute the code using top to down approach.

    C supports a rich set of operators, which are symbols used within an expression and programmer can perform a lot of operation and calculation using variables and many more like:

    • Union and structure

    • Basic data types and operators

    • File handling

    • Graphics

    • Functions

    • Pointers

    Using these we can build a strong application.

Similar Threads

  1. C programming with 64 bit
    By ThomasBarnes in forum Programming
    Replies: 1
    Last Post: 07-19-2010, 01:29 PM
  2. The Hardware Landscape - Different Shapes, Different Sizes
    By carian789 in forum Hardware Jargons
    Replies: 0
    Last Post: 11-20-2009, 03:42 PM
  3. All Shapes and Sizes
    By macrona in forum General Networking
    Replies: 0
    Last Post: 11-09-2009, 05:36 PM
  4. C , C++ programming
    By terank in forum Programming
    Replies: 0
    Last Post: 07-04-2008, 10:23 AM
  5. Problem with custom shapes and layouts styles for Photoshop CS2?
    By afif95 in forum Motherboards & Memory
    Replies: 1
    Last Post: 02-01-2008, 05:25 AM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48