Headlines News :
Home » , » C++ Code To Draw A Winking Face

C++ Code To Draw A Winking Face



Hi Students Friend Reader ,I like to share my c++ coding to draw a winking face.Just have some fun with these codings.
// WINKSUB.CPP
// Wink
// Created by Ankit jain on 20.4.2013.
// Copyright 2010, Ankit jain. All rights reserved.
// The copyright to the computer program(s) herein
// is the property of Ankit Jain, India. The
// program(s) may be used and/or copied only with the
// written permission of Ankit Jain or in accordance
// with the terms and conditions stipulated in the
// agreement/contract under which the program(s) have
// been supplied. This copyright notice must not be
// removed.
// Published in www.studentsfriend.in
#include
#include
#include
void main()
{
int suymid,suxmid;
int r,i;
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, “”);
suxmid=250;
suymid=250;
setcolor(15);
setfillstyle(1,15);
bar(1,1,700,500);
setcolor(0);
setfillstyle(1,0);
bar(5,5,630,470);
//face
setcolor(15);
setfillstyle(1,15);
fillellipse(suxmid,suymid,200,200);
setcolor(0);
setfillstyle(1,0);
fillellipse(suxmid-80,suymid-40,40,70);
for(i=0;i<5 br="" i="">arc(suxmid+80,suymid+i,30,160,50);
for(i=0;i<5 br="" i="">arc(suxmid,suymid+40+i,200,340,100);
setcolor(15);
setfillstyle(1,15);
fillellipse(suxmid-55,suymid-40,15,45);
getch();
}

Enjoy !!!



Share this post :
 
Support : Worldwide Solution | Intense Dealz | Your Link
Copyright © 2013. Students Friend - All Rights Reserved
Website maintained by Ankit Jain And Akhil Dadhich
Proudly powered by WWS INDIA