Click to See Complete Forum and Search --> : Hangman


nkagi
August 12th, 2008, 12:39 PM
Dear All,

I'm quite new at programming with C#. can someone give me example code that I can use to enable a user to enter string characters via keyboard.

the thing is i have to write a hangman game and the user have to guess the word advanced, by typing it. please give me a clu. I am desparate

capitolc
August 15th, 2008, 09:25 AM
finally a simple enough question that I can help with... of course, I don't have much to go on so I did a simple console application.


static void Main(string[] args)
{
Console.WriteLine("type in string");
string myLine = Console.ReadLine();
Console.WriteLine("... understand, you just typed in " + myLine);
Console.ReadLine();
}