Membuat Program C++ Bucin Untuk Pacar/Gebetan
Hallo guys, salam sejahtera.
Di postingan kali ini, saya akan memberikan sebuah contoh program c++ bucin untuk pacar /gebetan yang hasil outputnya itu membentuk hati atau lope gitu guys hahaha.
Emang bisa gitu membuat lambang hati/love dengan c++ ???...Ya bisa banget guys, kalo kamu mau berusaha nyari coding c++nya ya.
Disini saya akan membuat program tersebut dengan compiler Code Block berikut program tersebut :
Ok, langsung aja kamu buka c++ dan buat new project, lalu Copas dah ni coding c++ di bawah ini:
Program C++ Bucin untuk Pacar/Gebetan
#include <iostream>
#include <stdlib.h>
#include <windows.h>
using namespace std;
int main(){
system("cls");
int l,o;
char yt;
string nama, pacar;
{
cout<<"Siapa Nama Anda : "; cin>> nama ;
cout<<"Siapa Nama Pacar Anda : "; cin>>pacar ;
}
{
awal :
cout<<"Apakah Anda Mencintai "<<pacar<<"[Y/T] : " ;
cin>>yt;
cout<<"Apakah anda ingin mengulang ? [Y/T] : ";
cin>>yt;
cout<<endl;
if(yt=='Y' || yt=='y')
{goto awal;}
if(yt=='T' || yt=='t')
{goto selesai;}
selesai:
cout<<"Saya "<<nama<<" Mencintai "<<pacar<<endl ;
cout<<"Terima Kasih ,Saya Juga Mencintai "<<nama<<endl; // Hanya variasi saat keluar
}
system("color 4");// huruf c kode warna.
for(l=1;l<=22;l++){
for(o=1;o<=60;o++){
if(l==1) if(((o>=14)&&(o<=23))||((o>=39)&&(o<=48))) cout<<"*"; else cout<<" ";
else if(l==2) if(((o>=11)&&(o<=26))||((o>=36)&&(o<=51))) cout<<"*"; else cout<<" ";
else if(l==3) if(((o>=9)&&(o<=28))||((o>=34)&&(o<=53))) cout<<"*"; else cout<<" ";
else if(l==4) if(((o>=7)&&(o<=30))||((o>=32)&&(o<=55))) cout<<"*"; else cout<<" ";
else if((l>=5)&&(l<=8)) if((o>=5)&&(o<=57)) cout<<"*"; else cout<<" ";
else if(l==9) if((o>=7)&&(o<=55)) cout<<"*"; else cout<<" ";
else if(l==10) if((o>=9)&&(o<=53)) cout<<"*"; else cout<<" ";
else if(l==11) if((o>=11)&&(o<=51)) cout<<"*"; else cout<<" ";
else if(l==12) if((o>=13)&&(o<=49)) cout<<"*"; else cout<<" ";
else if(l==13) if((o>=15)&&(o<=47)) cout<<"*"; else cout<<" ";
else if(l==14) if((o>=17)&&(o<=45)) cout<<"*"; else cout<<" ";
else if(l==15) if((o>=19)&&(o<=43)) cout<<"*"; else cout<<" ";
else if(l==16) if((o>=21)&&(o<=41)) cout<<"*"; else cout<<" ";
else if(l==17) if((o>=23)&&(o<=39)) cout<<"*"; else cout<<" ";
else if(l==18) if((o>=25)&&(o<=37)) cout<<"*"; else cout<<" ";
else if(l==19) if((o>=27)&&(o<=35)) cout<<"*"; else cout<<" ";
else if(l==20) if((o>=29)&&(o<=33)) cout<<"*"; else cout<<" ";
else if(l==21) if((o>=30)&&(o<=32)) cout<<"*"; else cout<<" ";
else if(l==22) if(o==31) cout<<"*"; else cout<<" ";
}
cout<<"\n" ;
}
{
cout<<pacar<<" love "<<nama<<endl ;
}
return 0;
}


Uwuu maaci��
BalasHapusAoakwowowo