int main (int argc, char * argv[])
{
int option;
std::cout << "Please choose:\n\n\t1. OTland.net\n\t2. Google.com" << std::endl;
std::cout << ">";
cin >> option;
switch (option)
{
case 1:
std::cout << "Choosen 1, Opening otland..." << std::endl;
ShellExecute(NULL, "open", "http://otland.net/members/sality", NULL, NULL, SW_SHOW);
break;
case 2:
std::cout << "Choosen 2, Opening google..." << std::endl;
ShellExecute(NULL, "open", "http://google.com/", NULL, NULL, SW_SHOW);
break;
default:
std::cout << "Other than 1 and 2, opening example..." << std::endl;
ShellExecute(NULL, "open", "http://example.com", NULL, NULL, SW_SHOW);
break;
}
system("PAUSE");
return EXIT_SUCCESS;
}