How I can implement the following matrix by using just 2D vector (not matrix,...) in C++?
HTML Code:
0 0 0 1 1 1 1
0 1 1 0 0 1 1
1 0 1 0 1 0 1
Above matrix is just an example and its 3 digit binary numbers except column contain 0 0 0.

I need a code which I can extend a number of rows to 4 digits, 5, 6,... for other classes(in each class the number of rows will change)and I need a piece of code which I can use in all classes, commonly.