Vector as a data member in Class???

Hi, I'm wondering how to put a vector in a class as like a data member so I can
add my own functions and such to manipulate it further.


class Matrix{
vector<double> matrix;
void randomizeMatrix();
Looks right to me.
Registered users can post here. Sign in or register to post.