Friday, November 30, 2018

Creating China Flag In Turbo C++ Codes

How to Create China Flag In C++ 


In this blog you will learn about how to create China Flag in C++ by using its Codes and then it will Show you the Flag on its Black Screen...

Step1; Open Turbo C++ program in your PC
Step2; Now write or Copy the following codes into the C++ 

#include<conio.h>
#include<graphics.h>
void main()
{
int driver=DETECT,mode;
initgraph(&driver,&mode,"c:\\turboc3\\bgi");
setfillstyle(1,RED);
bar(50,50,550,350);
line(130,100,120,130);
line(130,100,140,130);
line(120,130,90,130);
line(140,130,170,130);
line(90,130,113,150);
line(170,130,147,150);
line(113,150,103,180);
line(147,150,157,180);
line(103,180,130,160);
line(157,180,130,160);//big star

line(220,80,205,110);
line(220,80,225,110);
line(205,110,235,90);
line(225,110,200,90);
line(235,90,200,90);//second star

line(220,200,205,230);
line(220,200,225,230);
line(205,230,235,210);
line(225,230,200,210);
line(235,210,200,210);//third star

line(260,120,245,150);
line(260,120,265,150);
line(245,150,275,130);
line(265,150,240,130);
line(275,130,240,130);//fourth star

line(260,160,245,190);
line(260,160,265,190);
line(245,190,275,170);
line(265,190,240,170);
line(275,170,240,170);//fifth star




getch();
closegraph();
}

Step3; Now Compile (ctrl+F9) the Program and you will get the Flag of China on your Screen...



Drawing Grece Flag On Black Sceen Using Turbo C++ Codes

How to Create Grece Flag In C++ by its Coding


By the Following Steps You will get the Flag of Grece On Your Screen...

Step1; Open Turbo C++ program in your PC
Step2; Write the Following Codes in your PC

#include<conio.h>
#include<graphics.h>
void main()
{
int driver=DETECT,mode;
initgraph(&driver,&mode,"c:\\turboc3\\bgi");
setfillstyle(1,BLUE);
bar(80,100,430,275);
setfillstyle(1,WHITE);
bar(120,100,140,195);
bar(80,140,185,160);
bar(80,195,430,215);
bar(80,235,430,255);
bar(185,160,430,180);
bar(185,120,430,140);

getch();
closegraph();
}

Step3; Compile (ctrl+F9) the Program and you will get the Flag of Grece on Your Screen...



North Korea Flag Using C++ Coding

How To Create North Korea Flag 



in this blog you will learn how to do coding for the Flag of the North Korea, Just by following the below steps...

Step1; First Open Up Your Turbo C++ Program
Step2; And then Write the following Codes in your program


#include<conio.h>
#include<graphics.h>
void main()
{
int driver=DETECT,mode;
initgraph(&driver,&mode,"c:\\turboc3\\bgi");
setfillstyle(1,RED);
bar(60,120,480,270);
setfillstyle(1,BLUE);
bar(60,88,480,118);
bar(60,273,480,303);
setfillstyle(1,WHITE);
bar(60,270,480,273);
bar(60,118,480,120);
fillellipse(180,195,45,45);
setcolor(RED);
line(180,150,170,180);
line(180,150,190,180);
line(170,180,140,180);
line(190,180,220,180);
line(140,180,163,200);
line(220,180,197,200);
line(163,200,153,230);
line(197,200,207,230);
line(153,230,180,210);
line(207,230,180,210);

getch();
closegraph();
}


And The Compile it, and you will get the Flag of the North Korea on your Screen...



India Flag In C++ while Using codes of C++

How To Create India Flag In C++ while Using codes of C++


I will show you how to make the flag of india in Turbo C++, The Flag of India is much difficult to code but by the following codes you can get the Flag of India on your Screen...
Step1; Open Turbo C++ In your Computer 
Step2; Write The Following Codes in it

#include<conio.h>
#include<graphics.h>
void main()
{
int driver=DETECT,mode;
initgraph(&driver,&mode,"c:\\turboc3\\bgi");
setfillstyle(1,RED);
bar(50,50,500,180);
setfillstyle(1,WHITE);
bar(50,180,500,310);
setfillstyle(1,GREEN);
bar(50,310,500,440);
setcolor(BLUE);
circle(275,245,58);
setfillstyle(1,BLUE);
fillellipse(275,245,10,10);
ellipse(275,245,0,360,58,58);
ellipse(275,245,0,360,57,57);
ellipse(275,245,0,360,56,56);
ellipse(275,245,0,360,55,55);

fillellipse(270,191,3,3);
fillellipse(280,191,3,3);
fillellipse(290,193,3,3);
fillellipse(300,197,3,3);
fillellipse(312,205,3,3);
fillellipse(320,215,3,3);
fillellipse(326,225,3,3);
fillellipse(329,240,3,3);
fillellipse(329,252,3,3);
fillellipse(325,265,3,3);
fillellipse(319,276,3,3);
fillellipse(310,286,3,3);
fillellipse(299,293,3,3);
fillellipse(285,298,3,3);
fillellipse(272,299,3,3);
fillellipse(259,296,3,3);
fillellipse(247,291,3,3);
fillellipse(237,284,3,3);
fillellipse(229,274,3,3);
fillellipse(224,263,3,3);
fillellipse(221,250,3,3);
fillellipse(221,237,3,3);
fillellipse(224,224,3,3);
fillellipse(231,212,3,3);
fillellipse(240,203,3,3);
fillellipse(248,197,3,3);
fillellipse(258,193,3,3);

line(275,235,277,220);
line(275,235,273,220);
line(273,220,275,193);
line(277,220,275,193);

line(280,235,281,220);
line(280,235,284,220);
line(281,220,285,195);
line(284,220,285,195);

line(270,235,269,220);
line(270,235,265,220);
line(269,220,264,193);
line(265,220,264,193);

line(274,253,260,223);
line(274,253,263,223);
line(260,223,254,199);
line(263,223,254,199);

line(272,253,255,225);
line(272,253,258,225);
line(255,225,246,202);
line(258,225,246,202);

line(270,252,248,227);
line(270,252,253,228);
line(248,227,237,209);
line(253,228,237,209);

line(268,251,250,237);
line(268,251,252,235);
line(250,237,230,220);
line(252,235,230,220);

line(266,250,252,245);
line(266,250,251,241);
line(252,245,224,231);
line(251,241,224,231);

line(264,251,248,251);
line(264,251,248,247);
line(248,251,223,244);
line(248,247,223,244);

line(266,251,246,257);
line(266,251,247,253);
line(246,257,225,257);
line(247,253,225,257);

line(268,251,250,263);
line(268,251,246,260);
line(250,263,228,269);
line(246,260,228,269);

line(270,251,255,267);
line(270,251,250,266);
line(255,267,234,278);
line(250,266,234,278);

line(272,251,262,268);
line(272,251,255,270);
line(262,268,244,286);
line(255,270,244,286);

line(274,251,267,269);
line(274,251,262,272);
line(267,269,255,290);
line(262,272,255,290);

line(276,251,273,272);
line(276,251,268,274);
line(273,272,267,295);
line(268,274,267,295);

line(278,251,279,275);
line(278,251,275,276);
line(279,275,279,298);
line(275,276,279,298);

line(280,251,287,277);
line(280,251,283,278);
line(287,277,289,295);
line(283,278,289,295);

line(282,251,295,271);
line(282,251,293,276);
line(295,271,304,288);
line(293,276,304,288);

line(284,251,299,264);
line(284,251,300,270);
line(299,264,315,280);
line(300,270,315,280);

line(285,251,304,259);
line(285,251,305,264);
line(304,259,321,270);
line(305,264,321,270);

line(285,251,309,254);
line(285,251,309,258);
line(309,254,326,259);
line(309,258,326,259);

line(285,248,302,246);
line(285,248,308,250);
line(302,246,328,246);
line(308,250,328,246);

line(285,245,303,238);
line(285,245,308,241);
line(303,238,326,232);
line(308,241,326,232);

line(285,242,302,230);
line(285,242,308,232);
line(302,230,322,221);
line(308,232,322,221);

line(285,239,297,225);
line(285,239,305,224);
line(297,225,315,210);
line(305,224,315,210);

line(283,238,292,220);
line(283,238,298,219);
line(292,220,305,202);
line(298,219,305,202);

line(282,237,287,215);
line(282,237,291,214);
line(287,215,293,197);
line(291,214,293,197);


getch();
closegraph();
}



And After Compiling You will Get the Flag on your Screen

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


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 ...