A
andy
Hello,
I have created a class called shape, I've then called the following
code:
shape myShape;
This then calls the default constructor for this class:
Shape::Shape( void )
{
OtherClass vertices[3];
}
constructor simple sets a few double variables). My question is how do
access the contents of the array (vertices[0], vertices[1],
vertices[2]) within the main() function.
This is code that I currently have:
cout << myShape.get_value();
Any suggestions?
I have created a class called shape, I've then called the following
code:
shape myShape;
This then calls the default constructor for this class:
Shape::Shape( void )
{
OtherClass vertices[3];
}
array called vertices to the default constructor of OtherClass(thisFrom now on I'm guessing what should be happening. This code passes an
constructor simple sets a few double variables). My question is how do
access the contents of the array (vertices[0], vertices[1],
vertices[2]) within the main() function.
This is code that I currently have:
cout << myShape.get_value();
Any suggestions?