110,536
社区成员
发帖
与我相关
我的任务
分享
switch (col)
{
case 0: return a;
case 1: returnb;
case 2: return c;
case ( col> 25 && col< 46 && col % 2 ==0 ): return d;
case ( col> 25 && col< 46 && col % 2 !=0 ): return e;
case 46: return f;
default: throw new Exception ("out of index");
}
switch (col)
{
case 0: return a;
case 1: return b;
case 2: return c;
case 46: return f;
default:
if (col > 25 && col < 46 && col % 2 == 0) return d;
if (col > 25 && col < 46 && col % 2 != 0) return e;
throw new Exception("out of index");
}
switch (col)
{
case 0: return a;
case 1: returnb;
case 2: return c;
//case ( col> 25 && col< 46 && col % 2 ==0 ): return d;
//case ( col> 25 && col< 46 && col % 2 !=0 ): return e;
case 46: return f;
default:
if( col> 25 && col< 46 && col % 2 ==0 )
{}
elwe if( col> 25 && col< 46 && col % 2 !=0 )
{}
else
{
throw new Exception ("out of index");
}
}