Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <Windows.h>
- using std::cout;
- using std::cin;
- using std::endl;
- using std::string;
- string password, heroName;
- int class_pick;
- void Logging() {
- while (password != "erzis") {
- system("cls");
- cout << "Enter password: ";
- cin >> password;
- if (password == "erzis") {
- cout << "You've successfully logged in!" << endl;
- }
- }
- }
- void CharacterSetup() {
- system("cls");
- cout << "CHARACTER SETUP" << endl;
- cout << endl;
- cout << "Name of your hero: ";
- cin >> heroName;
- cout << endl;
- cout << "Pick a class:" << endl;
- cout << "[1] = warrior" << endl;
- cout << "[2] = archer" << endl;
- cout << "[3] = mage" << endl;
- cout << endl;
- cout << "I want to pick a class number: ";
- cin >> class_pick;
- switch (class_pick) {
- case 1:
- {
- }
- break;
- }
- }
- void MainMenu() {
- }
- int main() {
- Logging();
- CharacterSetup();
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement