c*********n 发帖数: 128 | 1 Let's say I have
double a[N][M] = { .......};
How to transform a into a 2D vector
vector< vector > v
?
I know for 1d case, you can do the following:
int myints[] = {16,2,77,29};
vector fifth (myints, myints + sizeof(myints) / sizeof(int) );
But what about 2d? |
|