vector arguement

Jan 1, 2016 at 1:17pm
how to make vector arguement to default in constructor?
Jan 1, 2016 at 1:40pm
Could you re-phrase the question, or add a bit to it?
Last edited on Jan 1, 2016 at 1:40pm
Jan 1, 2016 at 3:54pm
I believe the question you are trying to ask is can we pass a default vector to a function? The answer is no. You cannot pass a default vector because it doesn't make sense to create a blank vector with no data. You can just pass a blank vector. Or you can create the vector inside the body of the function.
Topic archived. No new replies allowed.