Just one Thing Pratik: Be careful with the goto! It's a pretty old function and makes your Project very "spaghetti-like". But it's not always a bad Option to choose :)
It does make sense in a nested Loop for example... Remember: don't use it too often and only when necessary ;)
@halfnoob
I know it's unnecessary here, but the thing was that it showed the error even before I put the goto so I thought it'd solve the problem but no.
Q would work but I guess I've declared another q somewhere hence the scope resolution operator.
Yeah i guess there might be another variable called password and it's trying to call that. I didn't think of that. Thanks! :D
// pass in q
void password(char a[100], int q)
{
if(q==1)
{
cout<<"\n Enter the master password : ";
}
elseif(q==2)
{
cout<<"\n Enter the password of the employee : ";
}
for(...)
{
....
}
Hey yeah I got you. Believe it or not, I'd initially called the parameters as youve mentioned, but cause of the errors I changed it to global.
Anyhow, could you also help me in the clreol line? I want backspace to delete the last '*' and allow me to type another character.