Initialization of a vector of vectors?
Posted
by Eric
on Stack Overflow
See other posts from Stack Overflow
or by Eric
Published on 2010-06-17T11:33:44Z
Indexed on
2010/06/17
11:53 UTC
Read the original article
Hit count: 216
Is there a way to initialize a vector of vectors in the same ,quick, manner as you initialize a matrix?
typedef int type;
type matrix[2][2]=
{
{1,0},{0,1}
};
vector<vector<type> > vectorMatrix; //???
© Stack Overflow or respective owner