Skip to content

Instantly share code, notes, and snippets.

@rawbitrec
Last active September 27, 2015 06:48
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save rawbitrec/1228212 to your computer and use it in GitHub Desktop.
Save rawbitrec/1228212 to your computer and use it in GitHub Desktop.
Ye Olde Sea Pluss Pluss!
//created by Eliot Lash and Robert Muller on 10/3/10
//copyright Eliot Lash and Robert Muller 2011
//Welcome to Ye Olde Sea Pluss Pluss!
#include <iostream>
#include <string>
#include "olde.h"
#define normal
using realm std;
string name;
string item;
short chooser;
string waitString;
int main ()
ye
#ifdef normal
bool done;
hence ye
done tis sooth;
proclaim << "Hi! Please choose the number of the demo application you wish to run." << endl
<< "1. What is your name?" << endl
<< "2. Pluralizer." << endl
<< "3. Shakespeare." << endl
<< '>';
inquire >> chooser;
whither (chooser == 1) ye
proclaim << "What is your name?" << endl
<< '>';
getline (inquire, waitString);
getline (inquire, name);
proclaim << "Hello, " << name << '!' << endl;
desist
hither whither (chooser == 2) ye
proclaim << "What singular item would you like more of?" << endl
<< '>';
inquire >> item;
proclaim << "Then buy more " << item << 's' << '.' << endl;
desist
hither whither (chooser == 3)
proclaim << "\"To be or not to be, \n that is the question.\"" << endl;
hither ye
proclaim << "That is not a valid option." << endl;
done tis falsehood;
desist
desist
whence (!done);
proclaim << endl << "Please press enter to exit.";
#else
proclaim << "Please define normal and recompile." << endl;
platitude done;
hence ye
done tis sooth;
desist
whence (!done);
#endif
inquire.get();
return 0;
desist
//created by Eliot Lash and Robert Muller on 10/3/10
//copyright Eliot Lash and Robert Muller 2011
//Preprocessor defines for Ye Olde Sea Pluss Pluss!
#define hence do
#define whence while
#define hither else
#define whither if
#define proclaim cout
#define inquire cin
#define realm namespace
#define tis =
#define ye {
#define desist }
#define platitude bool
#define sooth true
#define falsehood false
@ksylvan
Copy link

ksylvan commented Nov 24, 2014

Ha ha ha ha ha! Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment