How about using case ?

This is a discussion on How about using case ? within the C Programming forums, part of the General Programming Boards category; switch(a) { case 'a' = v }???...

  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, 10:40 PM
  2. Format Precision & Scale
    By mattnewtoc in forum C Programming
    Replies: 1
    Last Post: 09-16-2008, 11:34 AM
  3. Base converter libary
    By cdonlan in forum C++ Programming
    Replies: 22
    Last Post: 05-15-2005, 02: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, 04:00 PM

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