[algogeeks] Re: priority queue using C++ STL

2008-06-15 Thread shaarang tyagi
do the above this way (pointer way without array). On Jun 14, 5:15 am, shaarang tyagi [EMAIL PROTECTED] wrote: you must do the following: class vertex { public: vertex *parent; int value; vertex

[algogeeks] Re: priority queue using C++ STL

2008-06-14 Thread shaarang tyagi
you must do the following: class vertex { public: vertex *parent; int value; vertex() { parent = NULL; value = rand(); } ~vertex(); }Array[10];