Friday, October 25, 2019




Hallo selamat datang diblog ini. Pada postingan kali ini saya akan membagikan sebuah program login yang dibuat dengan pemrograman C++.

Langsung copy aja codenya dibawah ini hehe;v

#include <iostream>
using namespace std;

int main(){
string username, passwd;

system ("Color a");
login:
cout<<"################################"<<endl;
cout<<"  Username  : "; cin>>username;
cout<<"  Password  : "; cin>>passwd;
cout<<"################################"<<endl;

if ((username=="tersenyum404") && (passwd=="hamdani")) {
cout<<"  Login Berhasil"<<endl;
cout<<"################################"<<endl;

} else {
cout<<"  Username Atau Password Salah!"<<endl;
goto login;
}

return 0;
}


Pada bagian username=="tersenyum404" dan passwd=="hamdani"
kalian bisa edit sesuka kalian.

Sekian untuk postingan kali ini. sampai  jumpa lagi.

0 komentar:

Blog Archive

Popular Posts

Powered by Blogger.

Comments

Recent

Bottom Ad [Post Page]

Contact Form

Name

Email *

Message *

Search This Blog

Travel the world

Full width home advertisement

Keep Traveling

Travel everywhere!

Author Description

Hey there, We are Blossom Themes! We are trying to provide you the new way to look and use the blogger templates. Our designers are working hard and pushing the boundaries of possibilities to widen the horizon of the regular templates and provide high quality blogger templates to all hardworking bloggers!

Advertisement

Weekly post

Post Page Advertisement [Top]

Climb the mountains