Question: what needed is : 1- Modify the code so that you overload the - operator to subtract array2 from array1 2- Overload the <
what needed is : 1- Modify the code so that you overload the "-" operator to subtract array2 from array1 2- Overload the "<<" operator so that it will print the entire array on one line 3- if you complete the mine pkease do it #includeusing namespace std; #define MAXARRAY 5 class myarray { private: int value[MAXARRAY]; public: void setvalue(int index, int newvalue){ value[index]=newvalue;} int getvalue(int index){ return value[index];} myarray operator+(myarray array2) { myarray temparray; for (int i=0; i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
