Solved

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

Posted on 2006-10-29
1
299 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 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 126
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 471
java ^ examples 8 69
twoTwo  challenge 35 107
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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