The source code for Carray.h and ArrayDriver.cpp are on the web from a link on the class schedule for Tuesday (5/17/2016) and on Canvas under Files. You will notice that in the Carray class definition there are declarations for the + and += operators. Your task will be to write the definitions for these methods below in the file, with the other method definitions. Notice that the methods take in as a parameter a Carray &. Therefore, we are adding the array object to another array object. The operations are called from within main() with the statements:
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |