Implementation queue datastructure using dynamic array. Github: sourcecode/queueusingdynamicarray.h #include <iostream> using namespace std; #define MAX_CAPACITY 10 /* queue class using dynamic array*/ template <typename T> class queueArray { private: T* queue; //queue data pointer int size; //size of the queue int capacity; //capacity of the queue int front; //front element of the queue int rear; //last element of the queue public: //constructor queueArray() :queue(nullptr), size(0), capacity(MAX_CAPACITY), front(-1), rear(-1) { //create the dynamic array based on the MAX_CAPACITY queue = new T[capacity]; } queueArray(int cap) :queue(nullptr), size(0), capacity(cap), front(-1), rear(-1) { //create the dynamic array based on the capacity queue = new T[capacity]; } //return true, if size of the queue is zero bool isEmpty() { return (size == 0) ? true : false; } //add the element to queue void enqueue(T elem) { //adding firs...