Test for code tags

Discussion in 'C Programming' started by old-student, Mar 22, 2015.

  1. old-student

    old-student

    Joined:
    Mar 22, 2015
    Messages:
    7
    Likes Received:
    2
    Location:
    SE Washington
    here is a test code snippet within code tags:
    Code (Text):


    // main begins ********************************************************
    int main(void)
    {
       do
       { // do - while loop begins
         switch(mainmenu()) // put up main menu and return value
         { // switch begins
           case '1':
           case 'B':
           case 'b':
           ballistics(); // ballistic menu
           break;
           case '2':
           case 'R':
           case 'r':
           loadmenu();  // reload menu
           break;
           case '0':
           case 'Q':
           case 'q':
           chois =27; // quit
           break;
         } // switch ends
       } // do - while loop ends
       while (chois != 27);  // loop until chois == 27
    return(0);
    }
    // main ends **********************************************************
     
     
    old-student, Mar 22, 2015
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.