A bit of C++

//defines for pages
#define AboutMe      1

#define MyApps       2
#define MyFriends    3
#define MyPics       4
#define MyResume     5
#define MyContacts   6
#define MiniBlog     7

//main function itself
void MainMenu(int page)
//select a value for 'page'
//parameter

{
    switch(page)
    {
        case AboutMe:
        {
            printf("About me");
            break;
        }   
        case MyApps:
        {
            printf("My Applications");
            break;
        }   
        case MyFriends:
        {
            printf("Friends");
            break;
        }   
        case MyPics:
        {
            printf("Pictures");
            break;
        }   
        case MyResume:
        {
            printf("Resume");
            break;
        }   
        case MyContacts:
        {
            printf("Contacts");
            break;
        }   
        case MiniBlog:
        {
            printf("Mini Blog");
            break;
        }   
        default:
            printf("Main Menu");
    }

}
goto:
  1. http://3rd-trip.blogspot.com
    My blog: the 3rd trip
  2. http://lenta.ru
    news site
  3. http://google.com
    search site
  4. http://yandex.ru
    search site
  5. http://www.mail.ru
    free mail site
  6. http://winamp.com
    WinAMP site
  7. http://4just.ru
    just as is
Main Menu
  
  
  

  (c) By Valera A. Lavrovov
  LVA@mail.tomsknet.ru