Demonstrate Dijkstra's algorithm using C++