Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-10-29
1
Medium Priority
?
307 Views
Last Modified: 2013-11-20
how can I overloaded operator== for circular array Queue implementation ?
0
Comment
Question by:beginer92
1 Comment
 
LVL 48

Accepted Solution

by:
AlexFM earned 1000 total points
ID: 17832027
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Integration Management Part 2
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question