• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

how can I overloaded operator== for circular array Queue implementation ?

how can I overloaded operator== for circular array Queue implementation ?
0
beginer92
Asked:
beginer92
1 Solution
 
AlexFMCommented:
Well, if your class is called, for example, CCircularArray, operator== must look as:

bool operator ==(const CCircularArray& array) const;

The question is how do you define equality of two instances - you need to decide this according to your requirements.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now