|
a, b are the variables of the class, there is no comparison function in the class, you need to write an overloaded function comparison yourself. Just like a = b, call the Cobb function. Just like if CArray <int, int> m_IDArr is defined in class A, then calling a = b will cause an error, because m_IDArr has no test function, so you must define the test function yourself. |
|