What's new

Best program source ever!

smcd

Active member
http://adam.pra.to/public/docs/funky.txt
Code:
#define WTF                       () {
#define Like                      int
#define KTHX                      ;
#define KTHXBYE                   KTHX }
#define TEACHERSAIDSTARTWITH(a,b) ((a)=(b))
#define LOOPORSOMETHING(a,d)      for ((a)) {(d)}
#define INEEDAVARCALLED           Like
#define HASTOGOUP                 ++
#define STFU(d)                   assert( (d)
#define OMG                       )
#define PUTONSCREEN               std::cout <<
#define UID10T                    KTHX
#define HUHU                      sync_with_stdio(true) UID10T
#define ENDSAT                    <
#define HATS                      endl
#define YOUAREFIRED               return 0 UID10T
#define ISSMALLERTHAN             ENDSAT
#define DONTWORK(a)               PUTONSCREEN std::strerror((a))
#define HELPMEPLZ                 std::errno
 
 
#include <iostream>
#include <cerrno>
 
Like main WTF
  INEEDAVARCALLED y KTHX
  HUHU
  LOOPORSOMETHING( TEACHERSAIDSTARTWITH(y, 1) KTHX \
                   y ENDSAT 10 KTHX \
                   y HASTOGOUP, PUTONSCREEN y KTHX )
  PUTONSCREEN HATS KTHX
  DONTWORK(HELPMEPLZ) KTHX
  STFU(y ISSMALLERTHAN 10) OMG UID10T
  YOUAREFIRED
KTHXBYE
 

BGNG

New member
Awwww... The most cleverest thing I ever did was when the teacher said "The best programs have the shortest main() functions," I put all the stuff that WAS in main() into another function called T(), and my main() was this: "void main() { T(); }"
 

refraction

PCSX2 Coder
bcrew1375 said:
Hehe. Does it actually compile? I got a bunch of errors.


probably if you add the include stdio.h

looks wicked tho :p

wouldnt it be cool if you could write a whole program in plain english?
 

Top