Arrays

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Latina

    #1

    Arrays

    Hi, I have a string array, which there are the months.
    If the user enters a number which is stored in an int variable
    'month'.
    How I can compare the value stored in the variable 'month' to the
    string, to see if it is the same month.
    I was thinking on comparing the index of the array with the value
    stored in the variable 'month'.
    But I don't know how to do it.
    Can some one help me with that?
    Thanks

Working...