hello everyone. I am trying to find the shortest path to reach at a certain point.I have written the fist part of the code but I cant go further. Well my source code so far is this :
for (int i=1; i<Array[i];i++)
{
if (Array[0] > Array[1])
cout<<"AF is smaller with :"<<Array[1]<<endl;
else
cout<<"AC is smaller with: "<<Array[0]<<endl;
}
system ("pause");
return 0;
}
Now I have to compare 3 elements of the array. Element 2,4 and 11 but I can't do it to work properly.I know there is an algorithm called dijkstra to implement this kind of problem but I have to do it that way.