enum and 2D array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • XuFyaN
    New Member
    • Jul 2010
    • 1

    enum and 2D array

    Hwo to create Rown and coloumn of Enumeration values
    i want to create a table of these values using 2Darray and print them using nested loop.

    enum Days {Mon, Tues, Wed, Thurs, Fri}
    enum Periods {Period1, Period2, Period3, Period4, Period5}
  • roymunson
    New Member
    • Feb 2011
    • 2

    #2
    I dont think that you can do that as they are different types, you should create a new object that has a DAY and a PERIOD and fill an array with instances of that object

    Comment

    Working...