Switch Statements.

This is a discussion on Switch Statements. within the C++ Programming forums, part of the General Programming Boards category; Double post: http://cboard.cprogramming.com/showt...threadid=43646...

  1. #16
    Registered User
    Join Date
    May 2002
    Posts
    66

  2. #17
    Registered User kippen's Avatar
    Join Date
    Aug 2003
    Posts
    3
    why not just loop through the array and compair x in an if statement? that should shorten up your code

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using Files Inside Switch Statements
    By arealfind08 in forum C Programming
    Replies: 11
    Last Post: 03-17-2009, 05:49 PM
  2. Switch Statements
    By lazyturtle in forum C++ Programming
    Replies: 12
    Last Post: 05-02-2007, 03:40 AM
  3. Explanation of switch statements
    By ammochck21 in forum C++ Programming
    Replies: 6
    Last Post: 11-04-2006, 02:59 PM
  4. help with switch statements
    By Wexy in forum C Programming
    Replies: 3
    Last Post: 11-06-2002, 05:44 PM
  5. Switch Statements
    By blackgingr in forum C Programming
    Replies: 3
    Last Post: 10-07-2002, 03:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21