#pragma once #includetemplate class CVector { private: //global pointer address T* arr; //vector capacity size int capacity; // used size in current vector value list;(!!! length) int current; public: CVector() { arr = new T[1]; capacity = 1; current = 0; } ~CVector() { delete[] arr; capacity = 0; current = 0; } // Function to add an element at the last void Push(T data) { // if current == capacity; double the vector capacity if (IsFull()) Reserve(); // Inserting data arr[current] = data; current++; } // function to add element at any index void Push(T data, int index) { if (index >= capacity) { printf(" index out of vector range n"); return ; } else



