Victory Road  

Go Back   Victory Road > General > Technology
FAQ Community Today's Posts Search

Notices

 
 
Search this Thread
  #1  
Old September 30, 2008, 09:46:03 PM
SpaceMan++'s Avatar
SpaceMan++ SpaceMan++ is offline
Zoroark
 
Join Date: Aug 2008
Location: BC
Posts: 288
Default Obfuscated C/C++ ASCII Art Pyrmaid

Here's an obfuscated C/C++ code.
Code:
                 /*------------------------------------------------*\
                / Obfuscated C/C++ ASCII Art Pyrmaid -               \
                \ An obfuscated C/C++ source code ASCII art pyrmaid  /
                 \*------------------------------------------------*/

                                      #include\
                                      <iostream>
                                      #include  \
                                        <stdio.h>
                                      int   main
                                      (int i=1 )
                                        { int
                                         _ =
                                          i
                                         //\ .
                                        ////\ .
                                       // |  \ .
                                      / i |i//\ .
                                     / i  | i//\ .
                                    /1-  1   ///\ .
                                   / 2-  121   //\ .
                                  / 3-  12321   //\ .
                                 / 4-  1234321   //\ .
                                / 5-  1234-4321   //\ .
                               / 6-  12345-54321   //\ .
                              / 7-  123456-654321   //\ .
                             / 8-  1234567-7654321   //\ .
                            / 9- 123456789-987654321  //\ .
                           / (1+1||1+1==2)?(101):(010) //\ .
                          / (10+1||2+2==4)?( 1 ):(1010) //\ .
                         / (100+1||3+3==6)?(101):(01010) //\ .
                        / (100+1||4||4==8)?(1||1):(10101) //\ .
                       / (1000+1||5||5==0)?(2||2):(010101) //\ .
                      / (1000+11||6||6==2)?(3||3):(1010101) //\ .
                     / (10000+1||7||7==14)?(44-44):(1010101) //\ .
                    / (10000+11||8||8==16)?(55-55):(01010101) //\ .
                   / (100000+11||9||9==18)?(66-66):(101010101) //\ .
                  / (100000+11||10|10==20)?(77-77):(0101010101)-//\ .
                 //----------||----------------------------------//\ .
               _/2;   int x=1|1 ; int y  = 0;  ;   int  z  =   2- //\ .
              _/1 ;  int xx=1|1; int yy = 01    ;    int zz =    1+//\ .
              //------------||----------------------------------------\ .
            _/12- 1 + (x++) |   1    + i||i +    1    + (++x) + 1  - //\ .
           _/11-x-2 + (x++) |   1   + 10||01 +   1    | (++x) + 2-x - //\ .
          _/10-x-3  + (x)  ||  01   + 07||70 +   10   ||  (x) +  3-x - //\ .
         _/9- x- 4 +  (x)  ||  01   + 06||60 +   10   ||  (x)  + 4 -x - //\ .
        _/8- x- 5  +  (x)  ||  10   + 05||50 +   01   ||  (x)  +  5 -x - //\ .
       _/7- x-  6 +  (x)  ||   10  +  04||40  +  01    ||  (x)  + 6  -x - //\ .
      _/6- x-  7  +  (x)  ||  01   +  03||30  +   10   ||  (x)  +  7  -x - //\ .
     _/5- x-   8 +   (x)  ||  01   +  02||20  +   10   ||  (x)   + 8   -x - //\ .
    _/4- x-   9  + (x++) ||   10   +   _||_   +   01    || (++x) +  9   -x - //\ .
   _/3- x-  10  +  (x++) ||   10  +   i-88-i   +  01    || (++x)  +  01  -x - //\ .
  _/2- x-   11  +  (x++) ||   1   +   i-88-i   +   1    || (++x)  +  11   -x - //\ .
 _/1- x-   12   +  (x++) |    1   +   i-88-i   +   1     | (++x)  +   21   -x;  //\ .
/*_____*/printf("%i \n",/*--*/yy/*---*/+xx+/*---*/zz+/*---\-*/x+y+z+_+i/*_*/);}////\ .
  #2  
Old October 1, 2008, 01:02:02 PM
Yoshi648's Avatar
Yoshi648 Yoshi648 is offline
Administrator

 
Join Date: Nov 2006
Location: Yoshi's Island
Posts: 3,147
Default Re: Obfuscated C/C++ ASCII Art Pyrmaid

Yay random pyramid
  #3  
Old October 1, 2008, 04:40:51 PM
SpaceMan++'s Avatar
SpaceMan++ SpaceMan++ is offline
Zoroark
 
Join Date: Aug 2008
Location: BC
Posts: 288
Default Re: Obfuscated C/C++ ASCII Art Pyrmaid

Here's my new one:
Code:
#include <stdlib.h>   //"The huge 7" - An obfuscated version //
#include <iostream>  //of SpaceMan's Prime Number Generator //
bool isPrime(int integer) {for (int i = 2; i < integer; i++ )
{if (integer % i == 0){return false;break;}}return (true); }
int main(int argc, char** argv){std::cout << "Prime Number "
                                             << "Generator"
                                            << " 1.0\nThis"
                                           <<  " program "
                                          <<    "outputs"
                                         << " all prime"
                                        <<   " numbers"
                                       <<" lower than"
                                      <<" certain va"
                                     <<"lue. If you "
                                    << "entered inv"
                                   <<"alid value, "
                                  <<"the program "
                                 <<"may be buggy"
                                << ". \nEnter 0"
                               <<" or 1 to exi"
                              <<"t.\n";restart
                             :std:: cout << "E"
                            <<"nter the start"
                           <<"ing point: \n"
                          <<">" ; unsigned
                         long int start=3;
                        std:: cin>>start;
                       std::cout <<"\n";
                      std:: cout << "E"
                     <<"nter the max."
                    <<" limit: \n>";
                   unsigned long int
                  limit;std::cin >>
                 limit;std::cout<<
                "\n";if(limit<=1)
               {std::cout << "Ex"
              << "it.\n"; return
             (EXIT_SUCCESS);}if
            (start>0xFFFFFFFF)
           { start=0xFFFFFFFF
          -1;} if ( limit  >
         0xFFFFFFFF) {limit
        =0xFFFFFFFF-1;}if(
       start%2==0) {start
      ++;}for(long double
     current=start;current
    < limit;current += 2)
   {if (isPrime(current)
  ){ std::cout<<current
 <<"\n";}}goto restart;
return(EXIT_FAILURE);}
It's a huge 7
  #4  
Old October 2, 2008, 03:29:13 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: Obfuscated C/C++ ASCII Art Pyrmaid

The best part is the fact that those are real programs!
  #5  
Old October 2, 2008, 03:41:22 PM
Blues's Avatar
Blues Blues is offline
Regigigas
 
Join Date: Sep 2008
Posts: 867
Default Re: Obfuscated C/C++ ASCII Art Pyrmaid

Is that a coincidence, or did you somehow arrange that?
  #6  
Old October 2, 2008, 06:22:10 PM
Cat333Pokémon's Avatar
Cat333Pokémon Cat333Pokémon is offline
Administrator

 
Join Date: Nov 2006
Location: Nevada
Posts: 10,303
Default Re: Obfuscated C/C++ ASCII Art Pyrmaid

Quote:
Originally Posted by blueheat127
Is that a coincidence, or did you somehow arrange that?
They were arranged. Line breaks aren't necessary in C. You can put them almost anywhere in a line as long as you mark it properly.
 

Forum Jump


All times are GMT -8.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Victory Road ©2006 - 2024, Scott Cat333Pokémon Cheney
Theme by A'bom and Cat333Pokémon