[ create a new paste ] login | about

Link: http://codepad.org/zKzJqdQ3    [ raw code | output | fork ]

bwy - C++, pasted on Apr 27:
#include <iostream>
#include <string>
#include <algorithm>
#include <iterator>

struct AsciiLiteral
{

    AsciiLiteral() : n(false) {}

    AsciiLiteral& operator--() { val += "  "; return *this; }
    AsciiLiteral& operator--(int) { val += "  "; return *this; }
    AsciiLiteral& operator-() { val += ' '; return *this; }

    AsciiLiteral& operator++() { val += "**"; return *this; }
    AsciiLiteral& operator++(int) { val += "**"; return *this; }
    AsciiLiteral& operator+() { val += '*'; return *this; }

    AsciiLiteral& operator~() { val += '='; return *this; }
    
    AsciiLiteral& operator!() { if (n = !n, n) val += '\n'; return *this; }

    AsciiLiteral& operator*() { val += '@'; return *this; }

    operator bool() const { return false; }

    std::string const& value() const { return val; }

private:

    std::string val;
    bool n;

};

std::ostream&
operator<<(std::ostream& o, AsciiLiteral const& l)
{
    std::copy(l.value().rbegin(), l.value().rend(),
            std::ostream_iterator<char>(o));
    return o;
}

int main()
{

    std::cout <<
    !------------------------****--*******----------------------------------!
    !------------------************************-----------------------------!
    !---------------****+++*************************------------------------!
    !-------------****++++++****************************--------------------!
    !------------**++++++++***+++*************************------------------!
    !----------********++++*+++++++++++********************-----------------!
    !--------***-*++******++++++++++++++++++***********---***---------------!
    !-----------**++++********++++*++++++++++***********----*---------------!
    !---------******************+*+++++++++++*************------------------!
    !--------********************++++++++++++***************----------------!
    !--------**********************+++++++++*****************---------------!
    !---------**********************+++++++*******************--------------!
    !--------****************++*****++++++*********************-------------!
    !------*****************+++*****+++++****************---****------------!
    !-----*****************+++*****++++*++++~*~++*********----**------------!
    !----*****************+++****+++++*+++++++++++********----*-------------!
    !---*****************++++**++++++*+++++++++++++*********----------------!
    !--*******************+++*++++++*++***++++++++***********-------*-------!
    !--**---**********++**++++*++++*+++++++++++++***************-****-------!
    !-**--***********+++*+++++++++*+++++++++++++**+*****************--------!
    !-*--*************+++++++++++*++~*******~++++*+****************---------!
    !--***********+***++++++++++*++++++***++++++**+***************----------!
    !-**********++++**+++++++++***+++++++++++++***+*****************--------!
    !**********+++++*+++++++++******+++++++++*****+******************-------!
    !*********+++++*+++++++++*********+***+*+**************---********------!
    !******-*+++++++++++++++**********+++++++****************---*******-----!
    !****---*++++++++++++++************++++++*****************----*****-----!
    !-***---*+++++++++++++***************+++++*****************----****-----!
    !--***--*++++++++++++*****+************++++*++*******-******---****-----!
    !---**--*++++++++++++****+*****************++++++***---*****---***------!
    !---**--*++++++++++*****++*****++************+++++++*******----**-------!
    !---*---**++++++++*****+++****+++++************++++++++***-----*--------!
    !-------**+++++++*****+++++***+++++++**+++*******++++++++**----*--------!
    !------****+++++*****+++++++**++++++++*+++++******+++*+++++*------------!
    !-----*****+++++*****++++++++*+++++++++++*++++****++++*++++*------------!
    !----******+++++**+*++++++++++*+++++++++++*+++****++++++*++*------------!
    !---**-*****+++***+*+++++++++++++++++++++++*+****+++++++++*+------------!
    !---*-******+++**++*+++++++++++++++++++++++**+**++++++++++++*-----------!
    !-----******+++**++*++++++++++****++++++++++*+**++++++++++++++*---------!
    !----*******+++**++*+++++++++******+++++++++*++**++++++++++++++*--------!
    !----********++**++**++++++++******+++++++++*+++*++++++++++++++**-------!
    !----*****--*+++*++**+++++++++****++++++++++*+++++++++++++++++****------!
    !----****---**++++++**+++++++++++++++++++++**+++++++++++++++++****------!
    !-----***----*+++++++**+++++++++++++++++++**++*++++++++++++++++**-------!
    !-----***----**+++++++***++++++++++++++++**+++**+++++++++++++++*--------!
    !------**-----*++++++++****+++++++++++****+++++**++++++++++++**---------!
    !-------**----**+++++++++***************++++++++***++++++++***----------!
    !--------**----**++++++++++++*******++++++++++++++**********------------!
    !---------**---***++++++++++++++++++++++++++++++++++******--------------!
    !----------*---****++++++++++++++++++++++*+++*++++++++**----------------!
    !--------------*****++++++++++++++++++**++++++**++++++**----------------!
    !-------------*******+++++++++++++++***+++++++**+++++**-----------------!
    !-------------********+++++++++++++***+++++++++***+++*------------------!
    !------------**********+++++++++++***+++++++++++**+++*------------------!
    !-----------**-********+++++++++***++++++++++++++*+++*------------------!
    !-----------*--******-*+++++++**+++++++++++++++++*+++*+-----------------!
    !--------------******-*++++++*+++++++++++++++++++*+++**-----------------!
    !-------------******--*+++++*++++++++++++++++++++++++*+*----------------!
    !-------------******--*+++++*+++++++++*++++++++++++++*++*---------------!
    !-------------*****---*++++++++++++++**+++++++++++++++*++*--------------!
    !------------*****---*++++++++++++++***++++++++++++++++*++*-------------!
    !-----------*****---*+++++++++++++++**++++++++++++++++++*++*------------!
    !----------*****---*+++++*++++++++++*++++++++++**+++++++*+++*-----------!
    !----------****---*+++++*+++++++++++++++++++++++**+++++++*+++*----------!
    !---------****---*+++++*+++++++++++++++++++++++***++++++++*+++*---------!
    !--------***----*+++++**++++++++++++++++++++++***+++++++++*++++*--------!
    !------****----**++++**+++++++++++++++++++++****+++++++++*++*+++*-------!
    !-----***------*+++++*++++++++++++++++++++***++++++++++++*++**+++*------!
    !--****-------**+++++++++++++++++++++++++**+++++++++++++**++**+++*+-----!
    !-------------*+++++++++++++++++++++++++*+++++++++++++++**++**+++**-----!
    !------------**++++++*+++++++++++++++++++++++++++++++++++*++**+++**-----!
    !------------*++++++++*+++++++++++++++++++++++++++++++++++*++*+++**-----!
    !-----------**+++++++++*+++++++++++++*+++++++++++++++++++++*+*+++**-----!
    !-----------*+++++++++++***+++++++++*+++++++++++++++++++++++**++***-----!
    !-----------*++++++++++++***********++++++++++++++++++++++++**++**------!
    !-----------*+++++++++++++*********+++++++++++++++++++++++++*++**-------!
    !-----------*++++++++++++++*******+++++++++++++++++++++++++*++**--------!
    !-----------*+++++++++++++++******+++++++++++++++++++++++++*+**---------!
    !-----------*+++++++++++++++++***++++++++++++++++++++++++++***----------!
    !-----------*+++++++++++++++++++*++++++++++++++++++++++++++***----------!
    !-----------**+++++++++++++++++*++++++++++++++++++++++++++***-----------!
    !------------*+++++++++++++++++*++++++++++++++++++++++++++***-----------!
    !------------**+++++++++++++++*++++++++++++++++++++++++++***------------!
    !-------------*+++++++++++++++*+++++++++++++++++++++++++***-------------!
    !-------------**+++++++++++++*+++++++++++++++++++++++++***--------------!
    !--------------*+++++++++++++*++++++++++++++++++++++++***---------------!
    !--------------**+++++++++++*++++++++++++++++++++++++***----------------!
    !---------------*+++++++++++*+++++++++++++++++++++++***-----------------!
    !---------------**+++++++++*+++++++++++++++++++++++***------------------!
    !----------------*+++++++++*++++++++++++++++++++++***-------------------!
    !----------------**+++++++*++++++++++++++++++++++***--------------------!
    !-----------------**++++++*+++++++++++++++++++++***---------------------!
    !-----------------**+++++*+++++++++++++++++++++***----------------------!
    !------------------**++++*++++++++++++++++++++***-----------------------!
    !------------------**+++*++++++++++++++++++++***------------------------!
    !-------------------**++*+++++++++++++++++++***-------------------------!
    !-------------------**+*+++++++++++++++++++***--------------------------!
    !--------------------***++++++++++++++++++***---------------------------!
    !--------------------**++++++++++++++++++***----------------------------!
    !---------------------*+++++++++++++++++***-----------------------------!
    !--------------------**++++++++++++++++***------------------------------!
    !--------------------**+++++++++++++++***-------------------------------!
    !--------------------**++++*+++++++++***+-------------------------------!
    !--------------------***++++**+++++++****-------------------------------!
    !---------------------***+++++++++++***+*-------------------------------!
    !---------------------***+++*+++++++*+*+*-------------------------------!
    !----------------------**++****+++++++*+*-------------------------------!
    !----------------------**++***++++++++*+*-------------------------------!
    !----------------------***++**++++++++*+*-------------------------------!
    !-----------------------**++**+++++++++*+*------------------------------!
    !-----------------------**++**++++++++++*+*-----------------------------!
    !-----------------------**+++*+++++++++++**-----------------------------!
    !-----------------------***+++++++++++++++*+----------------------------!
    !-----------------------***+++++++++++++++*+----------------------------!
    !-----------------------***++++++++++++++++*----------------------------!
    !-----------------------***++++++++++++++++*----------------------------!
    !-----------------------***++++++++++++++++**---------------------------!
    !------------------------**++++++++++++++++**---------------------------!
    !------------------------***+++++++++++++++**---------------------------!
    !------------------------***+++++++++++++++**---------------------------!
    !------------------------***+++++++++++++++**---------------------------!
    !------------------------***+++++++++++++++**---------------------------!
    !-------------------------**++++++++++++++***---------------------------!
    !-------------------------***+++++++++++++**----------------------------!
    !-------------------------***+++++++++++++**----------------------------!
    !-------------------------***++++++++++++**-----------------------------!
    !--------------------------**++++++++++++**-----------------------------!
    !--------------------------**++++++++++++**-----------------------------!
    !--------------------------**+++++++++++**------------------------------!
    !--------------------------***++++++++++**------------------------------!
    !--------------------------***++++++++++**------------------------------!
    !---------------------------**+++++++++**-------------------------------!
    !---------------------------***++++++++**-------------------------------!
    !---------------------------***++++++++**-------------------------------!
    !----------------------------**++++++++**-------------------------------!
    !----------------------------***++++++**--------------------------------!
    !----------------------------***++++++**--------------------------------!
    !-----------------------------**++++++**--------------------------------!
    !-----------------------------**++++++**--------------------------------!
    !------------------------------**+++++**--------------------------------!
    !------------------------------**+++++**+-------------------------------!
    !------------------------------**+++++*+*-------------------------------!
    !------------------------------**+++++*+*-------------------------------!
    !------------------------------+*++++++*+-------------------------------!
    !-----------------------------*+*+++++++*-------------------------------!
    !----------------------------*+++*++++++*-------------------------------!
    !---------------------------*++++*++++++*-------------------------------!
    !--------------------------*+++++*+++++++*------------------------------!
    !-------------------------*++++++**+++++++*-----------------------------!
    !-------------------------*+++++++*++++++++*----------------------------!
    !-------------------------*+++++++*+++++++++*---------------------------!
    !-------------------------*+*+++++*++++++++++*--------------------------!
    !-------------------------**+*+*++*++++++++*+*--------------------------!
    !--------------------------**+*++**+++++++*++*--------------------------!
    !---------------------------**++***++++++*+*+*--------------------------!
    !----------------------------****-**++++*+*+**--------------------------!
    !----------------------------------**++++*+**---------------------------!
    !-----------------------------------**++++**----------------------------!
    !------------------------------------**++**-----------------------------!
    !-----------------------------------------------------------------------!
    AsciiLiteral();
}


Output:
1
Timeout


Create a new paste based on this one


Comments: