how to put an array to an class pointer variable

Vector<double>* rhs = new Vector<double>(ndata);

c[]={0,1,2,3,1,2,1,2,1}

(*rhs)=c;

the method is wrong, can you help me?
Why are you using a pointer to vector?
http://www.cplusplus.com/reference/stl/vector/vector/
1
2
double c[]={0,1,2,3,1,2,1,2,1};
Vector<double> rhs ( c, c + sizeof(c) / sizeof(double) );
Topic archived. No new replies allowed.