void Graph::Shortest_Path(vector<double>& dist)
{
.......(here is what it does)
}
But now we have a problem trying to implement it in the main function in our cpp file.. We do not know how to define the vector<double>& dist in the main file? We tried to put it in our public part of our class, so we tried this:
1 2 3
vector<double>& dist) // in our public part of class.h file
Graph Object1; // in our main function cpp file
Object1.Shortest_Path(dist);
But this does not work. Can anyone help us on how to do this?