Find the error(s) in the following code: class mystery //Line 1{ //Line 2friend mystery operator<(const mystery& a,const mystery& b); //Line 3//Returns true if object a is less than//object b; otherwise it returns false....private: //Line 4double r; //Line 5}; //Line 6
Find the error(s) in the following code:
class mystery //Line 1
{ //Line 2
friend mystery operator<(const mystery& a,
const mystery& b); //Line 3
//Returns true if object a is less than
//object b; otherwise it returns false.
.
.
.
private: //Line 4
double r; //Line 5
}; //Line 6
Trending now
This is a popular solution!
Step by step
Solved in 2 steps