hello guys.
i'm new to c++. i've problem using two dimensional vector.
i've a project of making conway's game of life. this is the code that i have made so far.
my problem is how can i give a two dimensional vector through main.
glider.vec1 = vec; is not correct way to give a two dimensional vector i think coz i dont get the desire result.
it'd be gr8 if u could help me. thx in advance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream>
#include <vector>
#include "GameOfLife.h"
usingnamespace std;
GameOfLife::GameOfLife() {
int x = 0;
int y = 0;
vector < vector <bool> > v(0, vector<bool>(0));
}