vector c++

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.

please post the contents of your header file too.

The first argument of getline is a char*. That means it expects a C-style string. That means you need to give it the name of the char array that you want that string to go into. Think maybe that might be what you should give it?

After that you just identify which characters in that string belong to what fields, then extract them and convert them to the appropriate data types for your struct's fields.

BTW, if this is a C++ assignment that has you using vectors, shouldn't you also be using the basic string class instead of C-style strings? Though that still wouldn't change the need to feed getline a C-style string.