I have the following function:
int verticeEstimativaMinima(Node *grafo, int numVertices){}
And in my function main
, I have the following line of code:
Node *grafo = new Node[numVertices];
That is, I'm basically trying to pass an array of objects to a function. I'm calling it this way:
verticeEstimativaMinima(grafo,numVertices);
But the compiler returns me:
[Error] could not convert 'graph' from 'Node *' to 'Node'