multidimensional array - dynamic memory allocation ,error expression must have a constant value -
i have error saying expression must have constant value 1 please me out
#include
void transpose_vec() { std::vector<int> temp(size_b_row1); using namespace std; std::vector<double> matrix(size_b_row1); std::vector<double> matrix_t(size_b_row1); int i; for(i=0;i<size_b_row1;i++) { matrix_t[1][i] = matrix[i]; } }
Comments
Post a Comment