I\'m new to programming and having a problem with the following code:
private string alphaCoords(Int32 x)
{
char alphaChar;
switch (
The compiler has no way of knowing that the variable x can only contain numbers up to 9 (which is what you check in your switch). Since the default case is missing from your switch it can happen that alphaChar remains unassigned. You can either add a default case or assign the variable a value before the switch.