The use of array's in constructor
Posted on 2006-11-18
I have created a class called shape, I've then called the following code:
This then calls the default constructor for this class:
Shape::Shape( void )
From now on I'm guessing what should be happening. This code passes an array called vertices to the default constructor of OtherClass(this constructor simple sets a few double variables). My question is how do access the contents of the array (vertices, vertices, vertices) within the main() function.
This is code that I currently have:
cout << myShape.get_value();