Search:

Type: Posts; User: micheal9000

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,123

    So bad. If I want to put in integer number, and...

    So bad. If I want to put in integer number, and check if it equals 1, 3, 5, 7, 8, 10, 12 -> printf("has 31 days")... I mean use many case statement. So bad for C and C++.
  2. Replies
    6
    Views
    1,123

    Ask about switch

    Please help me. I have code as following



    #include <stdio.h>

    int main()
    {
    int num = 1;
    switch (num)
Results 1 to 2 of 2