Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Mar 2009
    Bellevue, WA
    The debugger is a seperate component from the compiler. When I first started programming I would get frustrated and hated using the debugger but in the end it became my best friend
    " Imagination is the preview of life's coming attractions " - Albert Einstein
    " If you can't explain it simply, you don't understand it well enough." - Albert Einstein

    My Website:

    If any post is informative please provide positive feedback by clicking the star below.

  2. #12
    Join Date
    Sep 2002
    So. Cal.
    This worked for me. I was trying to declare a new type int for each of my items, which of course wasn't working.

    Thanks everyone for your help!

    Quote Originally Posted by BazzaCAD View Post
    Try something like this....

    int pickedItem;
        pickedItem = int.Parse(Console.ReadLine());
        if (pickedItem == 1)
           Console.WriteLine("You've selected the 12 Gage Shotgun!");
       if (pickedItem == 2)
          Console.WriteLine("You've selected hand gun!");

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts