Contoh Pembuatan Password di C++

Contoh Pembuatan Password di C++

#include<stdio.h>

#include<conio.h>

#include<iostream.h>

main()

{

char nama[20], kelas[10], password[4];

atas:

cout<<endl<<endl<<endl;

cout<<"\t\t                                               
"<<endl;

cout<<"\t\t           S E L A M A T   D A T A N G   
      "<<endl;

cout<<"\t\t                                               
"<<endl;

cout<<"\t\t      Silahkan masukkan User Name&Password     
"<<endl;

cout<<"\t\t                                               
"<<endl;

cout<<endl;

cout<<"\t\t         UserName  : ";cin>>nama;

cout<<"\t\t         Kelas     : ";cin>>kelas;

cout<<"\t\t         Password  : ";cin>>password;

 

if (strcmp(password,"aaa")==0)

  {//strcpy(pwd="aaa");

  cout<<"\t\t Terima Kasih atas
Partisipasinya……..!"<<endl;

  cout<<"\t\t Tekan Sembarang Tombol…!"<<endl;

  goto bawah;

  }

else

  {

  cout<<endl<<endl;

  cout<<" Password Salah…..!"<<endl;

  getch();

  clrscr();

  goto atas;

  }

bawah:

getch();

}

4 Tanggapan

  1. Salam Nusantara!
    Kami mencari Penerima Beasiswa Wirausaha!
    Mohon izin, numpang “kapling”
    Matur Nuwun…..!

  2. mksh….

  3. ini programnya tinggal compile aja ato pake compiler apa? saya pake builder 5 ko gak bisa yach

  4. gak jadi, dah bisa, xxixxixixx

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.