Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string username;
- string password;
- cout << "Register!n" << endl;
- cout << "Username: ";
- cin >> username;
- cout << "Password: ";
- cin >> password;
- string newAcc = username;
- newAcc.append(".txt");
- ofstream newAccount(newAcc.c_str());
- newAccount << username << ' ' << password << endl;
- newAccount.close();
Add Comment
Please, Sign In to add comment