wizardanon

Behold- the ancient incantation:

wizardanon/wizardanon-day03.cpp
wizardanon/wizardanon-day03.cpp
\#include "stdafx.h"
    \#include "fstream"  
    \#include <iostream>  
    \#include <fstream>  
    \#include <string>  
    using namespace std;  
    
    \#define Modulorulum %  
    \#define Newlinius &\#39;\n&\#39;;  
    \#define Integerius int  
    \#define Openum {  
    \#define Closeth }  
    \#define Nullus 0  
    \#define Incantation  
    \#define ScryYonder getline  
    \#define HearYe return  
    \#define Hithero while  
    \#define Behold(x) std::cout << x << Newlinius  
    \#define Portal std::ifstream  
    \#define Summon(x) f(x)  
    \#define Appendo ++  
    \#define Equilarmius =  
    \#define IsItSo if  
    \#define Scrivening string  
    \#define Scriv char  
    
    Integerius main() Openum
    
        Portal Summon("day3.txt");
        
        Scrivening Forest;
        Scriv WoodenOne = &\#39;\#&\#39;;
        
        Integerius TreesBetwixt = Nullus;
        Integerius Footfalls = Nullus;
        Integerius Terminus = 31;
        Integerius Cockatrice = 3;
    
        IsItSo (f.is\_open()) Openum
            Hithero ( ScryYonder (f, Forest) ) Openum
                Integerius index Equilarmius 
                    (Footfalls Appendo \* Cockatrice) Modulorulum Terminus;
                IsItSo ( Forest.at(index) == WoodenOne ) Openum
                    TreesBetwixt Appendo;
                Closeth
            Closeth
        Closeth
    
        Behold( TreesBetwixt );
    
        HearYe Nullus;
    Closeth
    

Need more be said?


Tags: