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?
text-adventure/Initiation.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (12 sloc)
442 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
#include<iostream> | |
#include<string> | |
using namespace std; | |
int main() { | |
cout << "Welcome buddy are you ready to play this game?" << endl; | |
cout << "I'm so sorry i had to capture you, hehe" << endl; | |
cout << "But dont worry you still have a chance to survive" << endl; | |
cout << "First of what's your name?" << endl; | |
string user_name; | |
getline(cin, user_name); | |
cout << "Well, well well nice name. Hello, " << user_name << "." << endl; | |
} |