faiz 0 Newbie Poster

plz help me in debugging a program(urgent).it's the implementation of ascending and descending priority queues using array.i've made a program but it is not functioning properly.the problem is that when i initialize the array in the class the ascending priority queue stores only zeros and the descending priority queue is ok but if i don't initialize it the descending priority queue stores some garbage value instead of items inserted in it + the first element inserted in the queue is zero not the element inserted by the user.i'm in 2nd semester in software engineering and just a begginer in programming.so plz help with basic c++.faiz

priority queue using array.cpp

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.