c codeblocks Please complete in a way ot can be copied and p

c++ codeblocks

Please complete in a way ot can be copied and pasted with c++ codeblocks. Been getting a lot of passHead.h errors so please make it error free is it can run smoothly and be copied and pasted to c++ codeblocks

Solution

namespace Authenticate
{
   void inputUserName()
   {
       do
       {
           cout<<\"Enter your username (8 letters only) \"<<endl;
           cin>>username;
       }while(!isValid());
   }
   string getUserName()
   {
       return username;
   }
}
      

namespace Authenticate
{
   void inputPassword()
   {
       do
       {
           cout<<\"Enter your password (at least 8 letters \" << \"and at least one non-letter)\" <<endl;
           cin>>password;
       }while(!isValid());
   }
   string getPassword()
   {
       return password;
   }
}

int main()
{
   inputUserName();
   intputPassword();
   cout<<\"Your username is \"<<getUserName()<<\" and your password is: \"<<getPassword()<<endl;
return 0;
}

c++ codeblocks Please complete in a way ot can be copied and pasted with c++ codeblocks. Been getting a lot of passHead.h errors so please make it error free is

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site