#include<iostream>
#include<cstring>
using namespace std;
main(){
char fixedPwd[]="zxc";
char username[50]={0};
char pass[50]={0};
char name[50]={0};
char position[50]={0};
char s1[100]={0};
char s2[100]={0};
char choice;
char retry;
int matchpass;
cout<<"SAVVY TECH COMPANY"<<endl;
cout<<"==============================="<<endl;
cout<<"Enter your user name: ";
gets(username);
cout<<"Enter you password: ";
gets(pass);
matchpass=strcmp(fixedPwd,pass);
if(matchpass==0){
cout<<"Successfully Login!!!"<<endl;
cout<<"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="<<endl;
cout<<"MAIN MENU"<<endl;
cout<<"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="<<endl;
cout<<"A- Registrationof employee's record"<<endl;
cout<<"B- Not yet implemented"<<endl;
cout<<"Choice: ";
cin>>choice;
switch(choice){
case'A':case'a':
while(1){
if(retry=='Y' || retry=='y'){
cout<<"--------------------------------"<<endl;
cout<<"Registrationof employee's record"<<endl;
cout<<"==Employee's Record=="<<endl;
cout<<"Enter name: ";
gets(name);
cin.getline(name,50);
cout<<"Enter a position: ";
gets(position);
cout<<"Do you want to add more record?: ";
cin>>retry;
strcat(s1," ");
strcat(s1,name);
cout<<s1<<" "<<endl;
}else if(retry=='N' || retry=='n'){
cout<<"--------------------------------"<<endl;
cout<<"==Employee's Record=="<<endl;
strcat(s2,s1);
cout<<"Summary list of employees name is: "<<strlen(s1)<<endl;
break;
}else{
cout<<"Incorrect Input!"<<endl;
cout<<"Do you want to add more record?";
cin>>retry;
}
}
break;
default:cout<<"Not yet implemented!"<<endl;
break;
}
}else{
cout<<"Incorrrect Password. You are not allowed to access this program!"<<endl;
cout<<"Program Terminated........."<<endl;
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}