GNU的幽默

GNU的幽默

write by 九天雁翎(JTianLing) -- blog.csdn.net/vagrxie

GNU从名字开始幽默,GNU是GNU Not Unix的缩写。。。。-_-!

其主页上专门有一条GNU FUN:

http://www.gnu.org/fun/fun.html

其中最后的 Disclaim 如下:

Humor Submission Guidelines

Our policy for the humor page is that we will include something if all of these are true:

  1. It should be funny.
  2. It has no copyright problems.
  3. It is not libelous.
  4. It won't offend most ordinary hackers more than is reasonable in humor.
  5. The humor does not have to be computer-related.

GNUer是语言的发明创造专家和幽默大师,copyleft也来自这里,总之,他们喜欢与世界反着干.....

大部分的文章以声明(claim)结尾,其便以放弃(disclaim)结尾,大部分公司都是是将源代码作为最高机密,GNU却提倡开源,于是别人需要保留自己的copyright,GNU copyleft......其实copyleft也是收到保护的-_-!

这里从其中选一面贴过来:

from http://www.gnu.org/fun/jokes/declarations.html

Funny C/C++ declarations!

<!-- When using this boilerplate, remember to replace the "JokeTITLE" in both places above. And if it's a song, not a joke, change that word in the Disclaimer. -->
auto accident;
register voters;
static electricity;
struct by_lightning;
void *where_prohibited;
char broiled;
short circuit;
short changed;
long johns;
long dong_silver;    /* Submitted by Juan Carlos Castro */
unsigned long letter;
double entendre;
double trouble;
union organizer;
union jack;
float valve;
short pants;
union station;
void check; unsigned check;
struct dumb by[sizeof member];
union onion;	/*submitted by srp*/

/*if GCC extensions are allowed -- Dave Gilbert */
long long ago; /* in a galaxy far far away */

/* Submitted by James Buchanan */

const ipated;
case closed:
double or_nothing;
short sighted;
void if_removed;    /* warranty */
volatile buggy_code;
unsigned anonymous;
int erbreed;    /* duelling banjos */

/* Borland's additional C keywords */:
huge penis;
interrupt ed;
near sighted;
far out;


men()
{
   goto pub;
  pub:
   return pissed;
}

women()
{
   goto bathroom;
  bathroom:
   while (1) ;
}

class dismissed : public annoyance    /* Submitted by Juan Carlos Castro */

The following was submitted by Pietro Gagliardi:

/* All this was done on August 17, 2007 by Pietro Gagliardi
   You are free to use this code in a citation or (if you have the guts)
   in your own program; just please mention me. */

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;
};

个人最为欣赏的是这两个函数的定义:

men()
{
goto pub;
pub:
return pissed;
}

women()
{
goto bathroom;
bathroom:
while (1) ;
}

男人就是去酒吧喝醉了回来的动物,女人就是进入浴室再也不出来的动物-_-!

write by 九天雁翎(JTianLing) -- blog.csdn.net/vagrxie

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值