Menu

[solved]-Code Done C Included Class Used Function Description Function De Allocates Memory Allocat Q39095202

The code will have to be done in C++.
I included the Class used for this function.

Description: This function de-allocates all memoryallocated to INV. This will be the last function to be called(automatically by the compiler)
//before the program is exited.

class order_record
{
public:
   string cell_number;
   string item_number;
   double quantity;
   double price;
   int processing_plant;
   double tax_rate;
   double order_tax;
   double net_cost;
   double total_cost;
};

class order_class
{
public:
   order_class();
   ~order_class();
   bool is_Empty();
   bool is_full();
   int search(const string key);
   void add();
   void remove(const string key);
   void double_size();
   void process();
   void print();
   int count;
   int size;
   order_record *INV;
};

order_class::~order_class()
{
    // Enter the Code here.
   cout << “The destructor has beencalledn”;
}

Expert Answer


Answer to The code will have to be done in C++. I included the Class used for this function. Description: This function de-allocat… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *