请指点这个题目的算法,不胜感激
有2行3列的矩形框,输入6个数字1~6,要求左边的数字比右边的大,上边的数字比下边的大,求出所有可能的填写方法。[此贴子已经被作者于2006-2-16 18:32:57编辑过]
函数名: getch
功 能: 从控制台无回显地取一个字符
用 法: int getch(void);
程序例:
#include <stdio.h>
#include <conio.h>
int main(void)
{
char ch;
printf("Input a character:");
ch = getche();
printf("\nYou input a '%c'\n", ch);
return 0;
}
此种排序就一种方法吧!还有其他的吗?