int kind(int k) { switch(k)//排列组合4个数,对应表1 { case 1:A=NumberA;B=NumberB;C=NumberC;D=NumberD;break; case 2:A=NumberA;B=NumberB;D=NumberC;C=NumberD;break; case 3:A=NumberA;C=NumberB;B=NumberC;D=NumberD;break; case 4:A=NumberA;D=NumberB;B=NumberC;C=NumberD;break; …… case 22:D=NumberA;B=NumberB;A=NumberC;C=NumberD;break; case 23:D=NumberA;B=NumberB;C=NumberC;A=NumberD;break; default:D=NumberA;C=NumberB;B=NumberC;A=NumberD; } } 小结: