Receiving a specific input from user
Good day sir, I am new to programming language but i seem fascinated to C#. Am trying to write a program to counts number of steps from point A to B like the chess board. How do i get my input to accept two keys. the first being alphabet between A and G and the second input been numerical between 1 and 8. Thank you sir
VulpesPosted Oct 31, 2013, 12:06 PM
By far the easiest way to validate input for something like this is to a use a regular expression but, as you're new to programming, you'll probably prefer some 'conventional' code such as the following:
Tito OnowuPosted Oct 31, 2013, 5:28 PM
VulpesPosted Oct 31, 2013, 12:11 PM