Friday, November 30, 2018

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



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