I suggest you to search for hangman code in http://www.programmersheaven.com