//HANGMAN
//The classic game of hangman
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
//Initialization
const int MAX_WRONG=8;
vectorwords;
words.push_back("GUESS");
words.push_back("HANGMAN");
words.push_back("DIFFICULT");
srand(time(0));
random_shuffle(words.begin(),words.end());
const string THE_WORD=words[0];
int wrong=0;
string soFar(THE_WORD.size(),'-');
string used="";
cout
心情分类
推荐日记
分享排行