cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Vector as a data member in Class???
Vector as a data member in Class???
Dec 14, 2017 at 10:31pm UTC
Dispencer
(1)
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();
};
Dec 14, 2017 at 11:04pm UTC
doug4
(1534)
Looks right to me.
Topic archived. No new replies allowed.