password

#include
#include
#include
main( )
{

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

cout<<" S E L A M A T D A T A N G" ;
cout<cout<<" Silahkan masukkan User Name & Password" ;
cout<cout<
cout<<" UserName : " ; cin>>nama;
cout<<" Kelas : " ; cin>>kelas;
cout<<" Password : " ; cin>>password;
if (strcmp(password,"aaa")==0)
{
cout<<" Terima Kasih atas Partisipasinya..!" ;
cout<cout<<" Tekan Sembarang Mas..!" ;
goto bawah;
}
else
{
cout<<
cout<<" Password Salah Bro..!" ;
clrscr();
goto atas;
}
bawah:
getch();
}

Categories:

0 comments:

Post a Comment