Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror

Comment It's Simple Logic (Score 0, Troll) 707

#include <iostream>

#define SUCCESS 0
#define FATAL_ERROR -1

using namespace std;

enum
{
Google = 1,
Yahoo,
SomethingWorseThanYahooIfPossible
};

int main (void)
{
int EmailService;

cout << "Select your preferred email service provider. (1 = Google, 2 = Yahoo, 3 = SomethingElse) >";
cin >> EmailService;

if (EmailService == Google)
{
cout << "You enjoy clean interfaces, non-evil marketing functionality, and lot's of storage space!" << endl;
return (SUCCESS);
}
else if ((EmailService == Yahoo) || (EmailService == SomethingWorseThanYahooIfPossible))
{
cout << "You enjoy cluttered interfaces, evil marketing functionality, and very little storage space!" << endl;
cout << "You're a moron!" << endl;
return (FATAL_ERROR);
}
else
{
cout << "Wow, you can't even follow simple instructions. You aren't worthy of the Gmail product." << endl;
cout << "Go away!" << endl;
return (FATAL_ERROR);
}
}

Slashdot Top Deals

They laughed at Einstein. They laughed at the Wright Brothers. But they also laughed at Bozo the Clown. -- Carl Sagan

Working...