1 implement a blackhole class template with two parameters template the class shall 5346661

(1) Implement a blackHole class template with two parameters

template

The class shall have two data members:

a. type element[maxSize]

b. int currentSize

The class shall include at least two basic method:

void getIntoHole (type & x): this first check if the blackHole is full or not.

If not, it then adds x into the element array of the backHole.

type getOutHole(): this first checks if the blackHole is empty or not. If not,

it then deletes one random element from the element array and returns the deleted

elements and decrements the currentSize by one.

(2) Use this template to create an int blackHole and a string blackHole. Do some practice

about these two blackHoles such geting out of the hole and getting into the hole, etc.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now