Complete the Rectangle class.
class Rectangle
{
int length, width;
public:
...
};
Overload the +=, !, and << operators. The += operator should add the int argument to both the length and width members. The ! operator should return the area of the Rectangle. The << operator should be written as a friend of the Rectangle class.
Use this main() .
int main()
{
Rectangle R(6,4);
cout << R << " has area " << !R << endl;
R += 5;
cout << R << " has area " << !R << endl;
}
It should produce the output:
Rectangle: length=6 width=4 has area 24
Rectangle: length=11 width=9 has area 99
Hi
simple assignment,
i can do this in 1 day
i can also do all your other coursework related to programming at very low rates
send me the assignment and i will do it quickly
cheers
Asad