Class a rectangle
{
Int len, wid;
Public:
//designed
};
The main function is the first to receive the value of the length and width, and then use a rectangle class instantiation objects, and output after the pupil,
CodePudding user response:
Class a rectangle{
Double len, wid;
Public:
Void the set length (double len);
{
This.=len long;
}
Void the set width (double wid);
{
Enclosing the wid=wid;
}
Double area ()
{
The double results=0;
If (long!=0 | | wide!=0)
{
Results=wid * len;
}
Return the results;
}
};
Probably means written, homework or your good,
CodePudding user response:
Probably means written, homework or yourself ready,CodePudding user response:
Spreading operations more people tend to cast the net, and then someone answer just copy the answer Semitic, haven't the concept of link posted,Also said the homework yourself is responsible for yourself, think impassability question but can not be this kind of search method,
CodePudding user response:
CodePudding user response:
Too simple even ask? Work your zha don't want to thinkCodePudding user response:
This you should be able to completeCodePudding user response:
CodePudding user response:
Another year to hand in your homework when