1601278305
02 PJT
1.
void check()
{
int location; // @ location
int dom_location[1]; //domain location
int syarat;
do
{
syarat = 0;
cout<<"\nInput E-mail : ";
getline(cin,email);cin.sync();cin.clear();
location = email.find('@');
if(location < 0)
cout<<"Your Email did not Contain '@'"<<endl;
else
{
syarat = syarat + 1;
//cout<<"Syarat 1"<<endl;
}
dom_location[0] = email.find(".com");
dom_location[1] = email.find(".co.id");
if(dom_location[0] < 0 && dom_location[1] < 0) //jika tidak ada domain yg
terdeteksi
http://search.proquest.com/docview/220257248/fulltextPDF/13E0EEF237D34A4E
7C8/1?accountid=31532