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://4just.ru
    just (Alexander Gromadskiy) fans site
  3. http://lenta.ru
    news site
  4. http://google.com
    search site
  5. http://yandex.ru
    search site
  6. http://www.mail.ru
    free mail site
  7. http://winamp.com
    WinAMP site
  8. Please sign the petition Come on HTC, upgrade HD2 to Windows Phone 7!
Pictures
It's me.
It's me.
My favourite drummer.
My favourite drummer.
  
  
  

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