Friday, November 30, 2018

How To Create Pakistan Flag In C++

How To Create Pakistan Flag In C++ 

Step1; Install Turbo C++ Application in your computer
Step2; Write the Following Code In Turbo C++

#include<conio.h>
#include<graphics.h>
void main()
{
clrscr();
int driver=DETECT,mode;
initgraph(&driver,&mode,"c:\\turboc3\\bgi");
bar(100,50,200,250);
setfillstyle(SOLID_FILL,GREEN);
rectangle(200,50,450,250);
floodfill(201,51,WHITE);
rectangle(90,50,100,450);
arc(300,150,90,310,50);
arc(310,147,100,295,47);
line(310,120,300,170);
line(310,120,320,170);
line(320,170,290,140);
line(300,170,330,140);
line(290,140,330,140);
getch();
closegraph();
}

And after Compiling You will get Pakistan Flag on Your Screen


No comments:

Post a Comment

Making Gif of the images using MATLAB In this tutorial you will learn about how to make Gif  of the images while they are kept in One ...