Returning a pointer from initialized constructor?

Hi

If I have the following constructor that I need to initialize:

Polynomial::Polynomial (int a, int b, int c, char *z)

I know how to return the integers, like so:

this -> a = something here.

However, I have no idea how to return char *z, where this is a pointer to an array.

this -> *z = ??? doesn't work, nor does this -> char *z = ???
A constructor doesn't return anything. What are you trying to do?
Topic archived. No new replies allowed.