Ok, what I want this function to do is generate two arrays, called box, each with 3 numbers and it will tell the user which, if any, of these numbers are equal. However, the biggest problem I am having is just displaying the output. I am only getting one error and this is it
Here is the rest of the code for the functionCode:cbox03.cpp(315) : error C2660: 'CBox::operator ==' : function does not take 0 arguments
Code:bool CBox::operator ==(CBox b2) { int x=length; int y=width; int z=height; if (this->length==b2.length) { cout << "The height of the two boxes are equal"; } else if (this->width==b2.width) { cout << "The length of the two boxes are equal"; } else if (this->height==b2.height) { cout << "The height of the two boxes are equal"; } else if (this->height==b2.height&&this->length==b2.length&&this->width==b2.width) { cout << "All the sides of each box are equal"; } } void test_CBox_operatorEqual(void) { displayHeading("test_CBox_operatorEqual"); for (int t=1; t<=TEST_COUNT; t++) { CBox b1('r'); CBox b2('r'); b1.display(); b2.display(); cout << CBox::operator ==(); cout << endl; } }