Postingan

Menampilkan postingan dari Juni, 2014

program algoritma djikstra

#include <cstdlib> #include <iostream> #define max 20 #define infinity 9999 using namespace std; class dijkstra{       private:               int n;               int graph[max][max];               int colour[max];               int start;               int distance[max];               int predecessor[max];               enum {green,yellow,red};       public:              void read_graph();     ...