#include <stdio.h>
main()
{
char a[4][3]= {1,2,3, 1,2,4, 1,3,4, 2,3,4};
char b[24][3]=
{
1,2,3, 1,2,4, 1,3,2, 1,3,4, 1,4,2, 1,4,3,
2,1,3, 2,1,4, 2,3,1, 2,3,4, 2,4,1, 2,4,3,
3,1,2, 3,1,4, 3,2,1, 3,2,4, 3,4,1, 3,4,2,
4,1,2, 4,1,3, 4,2,1, 4,2,3, 4,3,1, 4,3,2
};
int i,j, bi, bj;
for (i=0; i<4; ++i)
{
for (j=0; j<24; ++j)
{
printf("形状(%d)颜色(%d) 形状(%d)颜色(%d) 形状(%d)颜色(%d)\n", a[i][0],b[j][0], a[i][1],b[j][1], a[i][2],b[j][2]);
}
}
}
[此贴子已经被作者于2017-11-15 06:02编辑过]