Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class user
- {
- private:
- int security;
- string password;
- public:
- string username, email;
- int age;
- string signup()
- {
- int num;
- cout << "Welcome new user!nPlease enter your username:n";
- cin >> username;
- cout << "What is your email?n";
- cin >> email;
- cout << "What is your age?n";
- cin >> age;
- cout << "Make a password:n";
- cin >> password;
- cout << "Enter a number:n";
- cin >> num;
- security = mnet::random(num);
- cout << "Your security code is " << security << endl;
- return username;
- }
- };
- int main()
- {
- string LorS;
- user cprofile;
- cout << "Welcome to MatrixNet! Login or Sign up?[L/S]n";
- cin >> LorS;
- if(LorS == "S" || LorS == "s") {
- cprofile = cprofile.signup();
- }
- return 0;
- }
- cprofile = cprofile.signup();
Add Comment
Please, Sign In to add comment