C#的switch与二维数组.....
摘要:
今天由于工作上的需要, 改了几行C# 的代码,发现有一些细微的语法区别,与C++,像switch语句那样,我一般不会在default后面加上break,语句,可是发现如果不加上的话,就会报下面的错误Error 1 Control cannot fall through from one case label ('default:') to another...另外,还有定义一下二维数组的话,,,,不能直接int a[2][3]这样,需要 int [,] convertTable = new int [24,3] {{ 001 , 001 , 001 } ,....{ 100 , 阅读全文
posted @ 2013-09-24 15:29 Orz.. 阅读(781) 评论(0) 推荐(0)
浙公网安备 33010602011771号