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.

Ex.

class Matrix{
private:
vector<double> matrix;
public:
void randomizeMatrix();
};
Looks right to me.
Topic archived. No new replies allowed.