Contoh Cara Buat Password di C++

Contoh Pembuatan Password di C++
#include
#include
#include
main()
{
char nama[20], kelas[10], password[4];
atas:
cout<<<
cout<<"\t\t                                              
"<
cout<<"\t\t           S E L A M A T   D A T A N G  
      "<
cout<<"\t\t                                              
"<
cout<<"\t\t      Silahkan masukkan User Name&Password    
"<
cout<<"\t\t                                              
"<
cout<
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……..!"<
  cout<<"\t\t Tekan Sembarang Tombol…!"<
  goto bawah;
  }
else
  {
  cout<<
  cout<<" Password Salah…..!"<
  getch();
  clrscr();
  goto atas;
  }
bawah:
getch();
}

No comments:

Post a Comment

Generation Of Computer

↑ Grab this Headline Animator