Thursday, 14 February 2013

How to create a Smile in C++ Graphics using Turboc ++


How to create a Smile in C++ Graphics

Program:

#include<graphics.h>
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void main()
{
int gd=DETECT, gm;
initgraph(&gd,&gm,"C:\\Turboc3\\BGI");
// "C:\\Turboc3\\BGI" this is the location of BGI
setbkcolor(GREEN);
setcolor(RED);
circle(100,150,50);
circle(80,150,5);
circle(120,150,5);
arc(100,135,240,-50,50);
settextstyle(1,0,4);
outtextxy(200,200,"ASIF");
getch();
}

Output:




Thanks for watching...
Comment it...

No comments:

Post a Comment