The class Register8 represents an 8-bit hardware register and is already defined with a private variable value, a constructor, and a getter.
Register8
value
Your task is to overload the == operator so that two Register8 objects can be compared.
==
Two registers are considered equal if their stored 8-bit values are identical.
In main():
main()
uint8_t
Equal
Not Equal
All integer inputs are guaranteed to be in the range 0 to 255.
Input / Output Specification
InputTwo space-separated integers a and b
a
b
0 ≤ a, b ≤ 255
OutputPrint exactly one of the following (case-sensitive):
Example 1
Input:
10 10
Output:
Example 2
5 7
Test Cases
Test Results
Input
Expected Output