Thread: C++

  1. #1

    C++

    show off your leet codes!
    Last edited by ZyngaFail; 2011-03-12 at 03:57 AM.

  2. #2
    Deleted
    int main() {
    const int code = 1337;
    return code;
    }
    not sure 'bout the syntax, been a while since I used C++

  3. #3
    Quote Originally Posted by Iphi View Post
    not sure 'bout the syntax, been a while since I used C++
    not bad, that's actually valid C++ unlike some hello world codes I've seen people using!


    come on this thread needs some template metaprogramming love
    Last edited by ZyngaFail; 2011-03-12 at 03:58 AM.

  4. #4
    Deleted
    Code:
    typedef int number;
    class microsoft : public corporation, public enemy<(number) 1> 
    {
     public:
    	microsoft()
    	{
    		sanity = 200;
    		bill_gates = drop_out();
    		ceo = bill_gates;
    		while (sanity > 2) 
                    {
    			sleep(2);
    			sanity--;
    		}
    		steve_ballmer = new class doofus;
    	}
    
    #define our int
    #define SUCCESS 1
    
    	our year_2006_goals()
    	{
    		delete bill_gates;
    		ceo = steve_ballmer;
    		sanity -= 200;
    		return SUCCESS;
    	}
    
    protected:
     	int sanity;
    	class doofus ceo, bill_gates, steve_ballmer;
    };
    
    typedef int iq;
    const iq of_steve_ballmer = -4, of_steve_jobs = MENSA_MINIMUM - 1,
             of_linus_torvalds = MENSA_MINIMUM, of_bill_gates = UNDEFINED;
    
    /* Here are some that make use of the preprocessor and the Unix programming interface */
    
    #include <sys/types.h>
    
    #define middle
    middle class businessMan 
    {
    	ino_t want_to_go_to_work;
    #if speeding_to_work_because_you_are_late
    	off_t o_jail;
    #endif
    };
    
    class mate
    {
    	ino_t wannagotoskool;
    };
    
    class woman 
    {
    #define be
    private:
    	be friend class of_girls;
    	off_t o_the_mall()
    	{
    		for (;;)
    			mall.go_to(rand()).shop();
    	}
    };
    
    class clown 
    {
     !friend class teacher;
     friend class mate;
    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •