c# switch problem

后端 未结 8 2361
囚心锁ツ
囚心锁ツ 2020-12-03 18:53

I\'m new to programming and having a problem with the following code:

    private string alphaCoords(Int32 x)
    {
        char alphaChar;

        switch (         


        
8条回答
  •  感动是毒
    2020-12-03 19:19

    Add a default to your switch, because if x is 10, alphaChar will never be assigned.

提交回复
热议问题