C++ source code for Hangman Game

May 2, 2017 | Author: AhsanSher | Category: N/A
Share Embed Donate


Short Description

Working code of game, just include words.txt of 4000 words and compile it.....

Description

#include #include #include #include #include #include



using namespace std; int main() { string words[4000]; ifstream fread("words.doc"); if(!fread) { cout > words[i]; } fread.close(); srand(time(0)); int randGen = 1 + rand() % 4000 ; string guess_word; guess_word = words[1]; cout
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF