ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.
One of a set of tools we're offering as a way to say thank you for being a part of the community.
That way: Not at all. The array is "local" to the constructor, i.e. will be removed from memory when the constructor exits. You will have to make that array a class member in order to be able to access it, e.g.
class Shape {
//...
public:
OtherClass& get_value(unsigned int index) { return vertices[index];}
private:
OtherClass vertices[3];
};
int main() {
Shape shape;
OtherClass vertex = shape.get_value(1);
}
That is just an outline, you should check wheter the index value is within the array bounds to not access memory that is not "yours".