Dev C++ Türk Bayrağı Hareketli Yapımı

Murozo
29-10-2017, 22:37   |  #1  
Murozo avatarı
OP Taze Üye
Teşekkür Sayısı: 1
19 mesaj
Kayıt Tarihi:Kayıt: Haz 2016

https://youtu.be/HOGIpEFewQQ

C++ Amatör olarak kod yazıyorum basit türk bayrağı kod yazdım farklı bildiğiniz kodlar varsa değiştirerek banada yardımcı olarabilirsiniz yorumlarınızı bekliyorum Kod Paylaşacağım.

#include<iostream>
#include<windows.h>
#include<stdio.h>
#include<conio.h>

void maps(int x,int y)


{
HANDLE z=GetStdHandle(STD_OUTPUT_HANDLE);
COORD c;
c.X=x;
c.Y=y;
SetConsoleCursorPosition(z,c);

}

using namespace std;

int main()
{
Z:

system("Title My Murozo(Türk Bayrağı)");

HANDLE nn;
nn=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute
(nn,FOREGROUND_RED|FOREGROUND_INTENSITY);
maps(0,0);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,1);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,2);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,3);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,4);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,5);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,6);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,7);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,8);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,9);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,10);
for(int n=2;n<35;n++)
cout<<(char)178;
maps(0,11);
for(int n=2;n<35;n++)
cout<<(char)178;

maps(6,5);
SetConsoleTextAttribute
(nn,FOREGROUND_GREEN|FOREGROUND_RED|FOREGROUND_BLUE|FOREGROUND_INTENSITY);
cout<<(char)178;
maps(7,4);
cout<<(char)178;
maps(7,6);
cout<<(char)178;
maps(8,7);
cout<<(char)178;
maps(8,7);
cout<<(char)178;
maps(8,3);
cout<<(char)178;
maps(9,2);
cout<<(char)178;
maps(9,8);
cout<<(char)178;
maps(10,9);
cout<<(char)178;
maps(10,1);
cout<<(char)178;
SetConsoleTextAttribute
(nn,FOREGROUND_GREEN|FOREGROUND_RED|FOREGROUND_BLUE|FOREGROUND_INTENSITY);
maps(18,5);
cout<<"*";

maps(20,5);
cout<<"*";
maps(19,4);
cout<<"*";
maps(19,6);
cout<<"*";


Sleep(2200);
system("cls");

goto Z;


}