Prime b

Prime b

  • NA
  • 810
  • 345.1k

Month Names GUI

Dec 12 2011 7:51 PM
Problem:
Create an enumeration named Month that holds values for the
months of the year, starting with JANUARY equal to 1. (Recall
that an enumeration must be placed within a class but outside
of any method.) Using a GUI interface, prompt the user for a
month integer. Convert the user's entry to a Month value and
display it. Save the project as MonthNamesGUI.

Thats what I have found in google, and i just copy pate it, but I dont know where go to next....

            int input, output;
            enum month : byte { Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec };
            input = Convert.ToInt32(inPutTextBox);


Answers (10)