#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;
"<<endl;
cout<<"\t\t S E L A M A T D A T A N G
"<<endl;
"<<endl;
cout<<"\t\t
"<<endl;
"<<endl;
cout<<"\t\t Silahkan masukkan User Name&Password
"<<endl;
"<<endl;
cout<<"\t\t
"<<endl;
"<<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;
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();
}
Tags : Bahasa C, C++, Password
Tidak ada komentar:
Posting Komentar