public
Last active

Ye Olde Sea Pluss Pluss!

  • Download Gist
HelloWorld.cpp
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
//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 test tis "Hello! " ;
string testt tis "Hi! " ;
 
int main (/*int argc, char *argv[]*/)
ye
#ifdef normal
bool done;
hence ye
done tis sooth;
proclaim << testt << "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;
//proclaim << '\a'; //beep
whither (chooser == 1) ye
proclaim << "What is your name?" << endl
<< '>';
getline (cin, test);
getline (cin, 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;
//proclaim << done;
desist
whence (!done);
#endif
inquire.get();
inquire.get();
return 0;
desist
Olde.h
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.