Do I need a copy constructor?
#ifndef MY_MIN_PQ_H
#define MY_MIN_PQ_H
#include <iostream>
#include <vector>
using namespace std;
class my_min_pq
{
public:
//default constructor
my_min_pq();
//destructor
~my_min_pq();
//insert element at end of sequence, and rearrange so minimum data at the front of array
void enqueue(int data ,int priority);
//removes data and priority from front of vector
bool dequeue();
//show structure based on priority where the smallest key is the first item outputted.
void show_pq_structure();
private:
//store priority
vector<int> pq;
//store data
vector<int> data;
//finds minimum priority value in array and swap positions of this priority index
//with the first index as well as data values
void find_min();
};
my_min_pq::my_min_pq()
{
pq;
data;
}
my_min_pq::~my_min_pq()
{
~pq();
~data();
}