I need to pass an array of 10 instances of a custom class to a function. The snippets of code are posted below. How would I do this right?
The prototype:
The implementation in the main function.Code:int Search(Vertex vertex[], ofstream &outfile);
Code:Search(vertex[10], outfile);