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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -