Question: Help me figure out how to fix this error. I think I need an == operator overloader to get rid of this error: SLaLLC CastDO01>[

Help me figure out how to fix this error. I think I need an == operator overloader to get rid of this error:

Help me figure out how to fix this error. I think Ineed an == operator overloader to get rid of this error: SLaLLC

SLaLLC CastDO01>[ ! !( 123450/ F de . getupI() ) ) ) no operator E= matches these operands c/C++(349) test-4-arithmetic-expression . cpp(8, 3): operand types are: const char [8] == OperandTEST_CASE ("class ArithmeticExpression") { ArithmeticExpression ae("1234567", "23456", '+'); CHECK ( "1234567" == ae . getop1() ) ; CHECK( "23456" == ae . getop2() ) ; CHECK ( '+' == ae . getoperator ( ) ) ; // The sign of the second operand should be merged with the operator ArithmeticExpression aeNegative("1234567", "-23456", '+"); github CHECK ("1234567" == aeNegative . getop1( ) ) ; CHECK ( "23456" == aeNegative . getop2( ) ) ; CHECK( ' -' == aeNegative . getoperator ( ) ) ; // The sign of the second operand should be merged with the operator ArithmeticExpression aeDoubleNeg ("1234567", "-23456", '-'); CHECK ("1234567" == aeDoubleNeg . getop1( ) ) ; CHECK ( "23456" == aeDoubleNeg . getop2( ) ) ; CHECK(' +' == aeDoubleNeg . getoperator ( ) ) ; // first operand being negative ArithmeticExpression aeFirstNegative("-1234567", "23456", '+'); CHECK("-1234567" == aeFirstNegative . getop1( ) ) ; CHECK ("23456" == aeFirstNegative . getop2( ) ) ; CHECK( '+' == aeFirstNegative . getOperator ( ) )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!