Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~9K People Reached
Favorite Forums
Favorite Tags
c++ x 8
Member Avatar for castrohe

I want to insert and order 3 objects (from different classes) in a priority queue. I create an array to access to the element inside the priority and then I push in the priority queue. The code: [code] #include <iostream> #include <queue> #include <vector> using namespace std; class Alumnos{ public: …

Member Avatar for ArkM
0
109
Member Avatar for castrohe

I am trying to make a priority queue with a specific type class 'alumnos'. I create 3 new classes (new, medium, old) who inherit from it. Then I insert the classe into de queue. I would like to use polymorphism when extracting to use the correct function 'verificarEdad' but gives …

Member Avatar for castrohe
0
9K