Question: c++ template T** allocate_twod(int* sizes); template T* deallocate_twod(T** twod, int size); template bool **init_plane(); template bool reserve(bool **plane, int row, int seat); // reserve seat
c++
template T** allocate_twod(int* sizes); template T* deallocate_twod(T** twod, int size); template bool **init_plane(); template bool reserve(bool **plane, int row, int seat); // reserve seat template bool cancel(bool** plane, int row, int seat); // cancel seat template void print_plane(bool **plane); // print plane
output :
ABCD
ABCD
ABCD
ABCD
if booked
ABCX
ABXD
ABCD
ABCD
make a seat reservation and cancel reservation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
