To make a class act like an array you can overload the [] operator to simulate the same kind of indexing:
class myQueue {
public:
myQueue();
myQueue(const myQueue & CCqueue);
myQueue& operator =(const myQueue& rhs);
~myQueue();
void enqueue(const myQueue& Contributor);
void dequeue();
bool IsEmpty();
bool IsFull();
int& operator[](int i)
{
return GetAt(i);
}
const int& operator[](int i) const
{
return GetAt(i);
}
private:
int& GetAt(int i)
{
// TODO: Get the value at i modulo size
}
int array[7];
int front;//this is front
int rear;//this is rear
int index;
int size;
};