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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -