/*消除确是老少皆宜的休闲游戏,对其算法曾略思索过,先行检查是否全为0,非0遇0转列处理*/ 答:http://ask.youkuaiyun.com/questions/237667#answer_218549#
int[,] b = { { 4, 2, 3, 3, 2 }, { 4, 0, 1, 1, 2 }, { 3, 2, 3, 2, 4 }, { 2, 0, 1, 3, 2 }, { 2, 3, 3, 2, 4 } };
int c = 4, d = -1;
do
{
if (b[c, 1] == 0) { if (d < 0) d = c; }
else if (d >= 0) { b[d, 1] = b[c, 1]; b[c, 1] = 0; d = c; }
} while (--c >= 0);