You have guess defined as an int, but Console.ReadLine() returns a string. That is the mismatch. That's why I gave you this line:
string guess_str = Console.ReadLine();
Then you can convert it to...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Jim_Auricman Search: Search took 0.01 seconds.
Results 1 to 3 of 3
|
Click Here to Expand Forum to Full Width |