Iterating enum and matrix issue

closed account (L092y60M)
Hello I'm very new to arrays and matrices, I really don't know how they work just yet.

Here I have an example that I would like some explaining.

1)Create an enumerator called Week that contains the different days of the week.
2)Create another enumerator called Month that contains the different months of the year.
3)Create a two dimensional array to hold 25 dates (09/12/1987) with different year, month, day (5 by 5 matrix)
4)Extract each item in the array and get the year, month, day and validate if the month and day exist in the enumerator. Print the year, month and day for each item by looking up the enumerator.

This is what I have so far...
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
31
32
33
34
35
36
37
#include <iostream>

using namespace std;

enum week{
	day_monday,
	day_tuesday,
	day_wednesday,
	day_thursday,
	day_friday,
	day_saturday,
	day_sunday
};
enum month{
	month_01,
	month_02,
	month_03,
	month_04,
	month_05,
	month_06,
	month_07,
	month_08,
	month_09,
	month_10,
	month_11,
	month_12
};
int main(){
	int matrix[5][5];





	system("pause");
	return 0;
}


I know this is sad... I'm just really confused.

Thank you very much.
Topic archived. No new replies allowed.