二维数组和二级指针的传递问题 (转载)
摘要:
先看个自己的例子吧:Write an algorithm such that if an element in an M*N matrix is 0, its entire row and column are set to 0;//本作目的在于熟悉多维数组的传递# include<iostream># define ROW_N 3# define LINE_M 4using namespace std;//传递矩阵时候要说明维度……void print_matrix(int matrix_ptr[ROW_N][LINE_M]){ for(int i=0;i<ROW_N;i+ 阅读全文
posted @ 2013-02-27 09:06 cosmo89929 阅读(564) 评论(0) 推荐(0)
浙公网安备 33010602011771号