Graphics in C

How to draw a Circle ?

How to draw a Line ?

#include<graphics.h>
 void main()
{
  int gm,gd=0;
  initgraph(&gd,&gm,"G:\\tc\\bgi");
  setcolor(2);            //set green color
  bar(150,150,400,300);
  outtextxy(200,200,"Welcome to Graphics"); //parameters are x,y and Message.
  getch();
 }

1 comment:

  1. If one day you feel like crying,
    Call me.
    I don’t promise that I will make you laugh,
    But I can cry with you.

    If one day you want to run away,
    Don’t be afraid to call me.
    I don’t promise to ask you to stop,
    But I can run with you.

    If one day you don’t want to listen to anyone,
    Call me.
    I promise to be there for you.
    And I promise to be very quiet.

    But if one day you call,
    And there is no answer,
    Come fast to see me,
    Perhaps I need you.

    ReplyDelete

Thanks for visiting my Blog!

Have a Question ? Need Help in College Assignments, Need Code that is not available here? Just leave a comment & get your code instantly.

Tips to Enhance Your Blog