Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
4007CEM_Monster_Souls/name.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (23 sloc)
665 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <iostream> | |
#include "toContinue.h" | |
std::string user_name; | |
int name_in(){ | |
char inp_; | |
std::cout << "enter your name: " ; | |
std::cin >> user_name; | |
std::cout << "\n"; | |
std::cout << "press Enter to continue.." << "\n"; | |
std::cin.ignore(); | |
inp_ = std::cin.get(); | |
if(to_cont(inp_)==true) | |
{ | |
std::cout << "welcome to the far ends of the forest " << user_name << std::endl; | |
std::cout << "\n"; | |
std::cout << "just an advice. DONT RUN AWAY :)" <<"\n"; | |
} | |
else{ | |
std::cout << "my god, cant even press enter, ITS GAME OVER FOR YOU !"; | |
} | |
return 0; | |
} |