Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~321 People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for ericcool

Required to use PriorityQueue to implements Dijkstra’s algorithm for solving the single-source shortest-path problem for weighted graphs without negative edge weights. I have a wrong output of my program. Here's the code: [CODE] //Graph.h class Graph { public: Graph(int r = 1, int c = 1); // constructor void setCost(int …

Member Avatar for ericcool
0
141
Member Avatar for ericcool

[CODE] template<class T, int size = 50> class genClass { T storage[size]; ...... void menberFun() { ...... if (someVar < size){......} ...... } } [/CODE] which uses an integer wariable size as a parameter to template to a declaration of genClass, which does not include size as a parameter to …

Member Avatar for StuXYZ
0
180