Thread: How about using case ?

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    How about using case ?

    switch(a)
    {
    case 'a' = v
    }???

  2. #2
    Unregistered
    Guest

    case

    seems like this

    switch(a)
    {
    case 'a':
    // something here;
    break;

    case 'b':
    // other thing here;
    break;

    default:
    // all other thing here;
    break;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Segmentation fault!?!?!?
    By Viper187 in forum Windows Programming
    Replies: 57
    Last Post: 10-02-2008, 09:40 PM
  2. Format Precision & Scale
    By mattnewtoc in forum C Programming
    Replies: 1
    Last Post: 09-16-2008, 10:34 AM
  3. Base converter libary
    By cdonlan in forum C++ Programming
    Replies: 22
    Last Post: 05-15-2005, 01:11 AM
  4. Creating pop up menus
    By Ti22 in forum C++ Programming
    Replies: 22
    Last Post: 01-18-2005, 09:27 PM
  5. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM