|
|
output: Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: d Fri Jan 1, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: w Fri Jan 1, 2021; Sat Jan 2, 2021; Sun Jan 3, 2021; Mon Jan 4, 2021; Tue Jan 5, 2021; Wed Jan 6, 2021; Thr Jan 7, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: m Fri Jan 1, 2021; Sat Jan 2, 2021; Sun Jan 3, 2021; Mon Jan 4, 2021; Tue Jan 5, 2021; Wed Jan 6, 2021; Thr Jan 7, 2021 Fri Jan 8, 2021; Sat Jan 9, 2021; Sun Jan 10, 2021; Mon Jan 11, 2021; Tue Jan 12, 2021; Wed Jan 13, 2021; Thr Jan 14, 2021 Fri Jan 15, 2021; Sat Jan 16, 2021; Sun Jan 17, 2021; Mon Jan 18, 2021; Tue Jan 19, 2021; Wed Jan 20, 2021; Thr Jan 21, 2021 Fri Jan 22, 2021; Sat Jan 23, 2021; Sun Jan 24, 2021; Mon Jan 25, 2021; Tue Jan 26, 2021; Wed Jan 27, 2021; Thr Jan 28, 2021 Fri Jan 29, 2021; Sat Jan 30, 2021; Sun Jan 31, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: x Invalid option, try again. q to quit. Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: s set day d)efault m)month,day n)umber v)ary: m mon day (3-letter-month number, like: jan 1): nov 22 day#=[326] mon nov 22, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: d Mon Nov 22, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: w Mon Nov 22, 2021; Tue Nov 23, 2021; Wed Nov 24, 2021; Thr Nov 25, 2021; Fri Nov 26, 2021; Sat Nov 27, 2021; Sun Nov 28, 2021 |
looking for help on this code I have no idea how to continue from this point |
|
|
|
|
|
|
|
|
|
|
Implement 3 constructors, ++day, day++, --day, day--; "show", "print", "display", << as needed Members can be here (inline) or after. |
|
|
|
|
|
|
|
|
Example output: Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: d Fri Jan 1, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: w Fri Jan 1, 2021; Sat Jan 2, 2021; Sun Jan 3, 2021; Mon Jan 4, 2021; Tue Jan 5, 2021; Wed Jan 6, 2021; Thr Jan 7, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: s set day d)efault m)month,day n)umber v)ary: m mon day (3-letter-month number, like: jan 1): nov 22 day#=[326] mon nov 22, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: d Mon Nov 22, 2021 Options: Display d)ay w)eek m)onth; s)et-day t)esting q)uit: w Mon Nov 22, 2021; Tue Nov 23, 2021; Wed Nov 24, 2021; Thr Nov 25, 2021; Fri Nov 26, 2021; Sat Nov 27, 2021; Sun Nov 28, 2021 |
|
|
|
|
|
|
Fri Jan 1, 2021 |
Fri Jan 1, 2021; Sat Jan 2, 2021; Sun Jan 3, 2021; Mon Jan 4, 2021; Tue Jan 5, 2021; Wed Jan 6, 2021; Thr Jan 7, 2021 |
Fri Jan 1, 2021; Sat Jan 2, 2021; Sun Jan 3, 2021; Mon Jan 4, 2021; Tue Jan 5, 2021; Wed Jan 6, 2021; Thr Jan 7, 2021 Fri Jan 8, 2021; Sat Jan 9, 2021; Sun Jan 10, 2021; Mon Jan 11, 2021; Tue Jan 12, 2021; Wed Jan 13, 2021; Thr Jan 14, 2021 Fri Jan 15, 2021; Sat Jan 16, 2021; Sun Jan 17, 2021; Mon Jan 18, 2021; Tue Jan 19, 2021; Wed Jan 20, 2021; Thr Jan 21, 2021 Fri Jan 22, 2021; Sat Jan 23, 2021; Sun Jan 24, 2021; Mon Jan 25, 2021; Tue Jan 26, 2021; Wed Jan 27, 2021; Thr Jan 28, 2021 Fri Jan 29, 2021; Sat Jan 30, 2021; Sun Jan 31, 2021 |
|
|
|
|
DAY OF THE YEAR TO MONTH AND DAY TRANSLATOR Please enter a day in the range of 1 through 365, and I will translate it for you into a month and day format. For instance, 32 becomes February 1., and 230 translates to August 18. Please enter a day (1 through 365): 1 January (lldb) |
|
|
cout << monthOfYear[count] << " " << (day - daysInYear[count-1]) << ".\n";