Complete the following program so it defines an array of Yard objects. The program should use a loop to ask the user for the length and width of each Yard.
#include
using namespace std;class Yard{private: int length, width;public: Yard() {length = 0; width = 0;} setLength(int len) {length = len;} setWidth(int w) {width = w;}};int main(){ // Finish this program}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.