摘要:
public class Permutation { private static int A(int down, int up) { if(down < up || up <= 1) return -1; int res = 1; while(up-- > 0) { res *= down--; 阅读全文
摘要:
可以直接使用一维数组来模拟二维数组,下面的代码就是在此基础上,用一个二级指针指向一维数组的相应地方,详见代码#include #include int main(){ int row,col,i,j,n=0; row=col=3;//malloc连续内存的二维数组 int **ar... 阅读全文