[ 陌 生 , 爱 ) < = = > 始 于 陌 生 , 爱 无 止 境 [ 陌生, 爱) \ \ \ \ \ \ \ \ \ \ \ <==> \ \ \ \ \ \ \ \ \ \ 始于陌生,爱无止境 [陌生,爱) <==> 始于陌生,爱无止境
如果说数学公式是数学家的浪漫,那么代码就是程序员的浪漫。
心中有梦,万物皆诗!看我们程序人用代码写出的诗篇可以有多美。
来自网络。没有你,我甚至无法对世界说你好。
I am
not happy
beca se ....
// with...out u
来自网络。这首诗原名 「UNHANDLED LOVE」,无人接收的爱。扎心了,老铁。
来自网络。这首诗原名 「IMPORT SOUL」,幸福就是过好每一天。
来自网络,注释是星球大战的梗。仿佛每个童话故事都要从「很久很久以前」讲起…
来自网络。我们意见不一致的时候听她的,意见一致的时候听我的。
来自网络。愿每一个C/C++人,都能被世界温柔以待。送你一个最温柔的宏定义。(或许只有C/C++程序员才能看的懂吧(;′⌒`))
我们的世界是真实的还是虚幻的?庄生晓梦迷蝴蝶是庄周梦蝶,亦或是蝶梦庄周?
当虚幻成为现实,现实当何去何从,当梦醒发现一切不过是黄粱一梦,你又是否会选择继续沉睡…(( ̄ε(# ̄)☆╰╮o( ̄皿 ̄///) 正经点阿喂~ ( ̄ε(# ̄)不好意思,戏过了)
注:以下宏展开后其实true依然表示真,false依然为假。
来自github。老嘤语课代表了,我直接一拳一个嘤嘤怪。
同样来自github。居然有8.8k的start。嗯,( ー̀εー́ )我是不是也可以试着搞个喵语言,或者汪语言。
来自互联网黑话热梗。有的程序员是面向谷歌编程,有的程序员是面向监狱编程。
警 告 : 不 要 尝 试 ! 不 要 尝 试 ! 不 要 尝 试 ! ! ! 警告:不要尝试!不要尝试!不要尝试!!! 警告:不要尝试!不要尝试!不要尝试!!!
来自知乎。懂得都懂,还是那句话 不 要 尝 试 ! 不要尝试! 不要尝试! 。
来自知乎。我对你的爱至死不渝,好的成全你(去死叭)。
不过,第三行应该有个bug,“shutdown not found” 你知道原因吗?
来自ioccc 1987年参赛的作品 biggar。如果你问我世界上最短的程序是什么,那么毫无疑问是biggar,它的功能是将从标准输入读取的字符写到标准输出上。
该程序代码只有一个字母,而为了实现该程序作者使用了一个复杂的编译命令行。
在一篇文章(文章链接)提到,该程序编译时进行了宏的展开,将原程序替换成如下形式:
来自ioccc 2012年参赛作品 omoikane 。一看就是老二次元了,作者用c语言代码描绘出一个动漫人物(别问我这是谁,因为我不知道(●’◡’●))。程序的功能是对输入的数据加密。
注:类似的作品还有很多,都可以在https://www.ioccc.org/ 找到
来自ioccc 1988年参赛作品 phillipps。作者使用了大量三目运算符,和main函数递归,程序功能是打印出一首歌的歌词。(想不到吧,我人都傻了)
歌词如下
O n t h e f i r s t d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e a p a r t r i d g e i n a p e a r t r e e . O n t h e s e c o n d d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e t h i r d d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e f o u r t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e f i f t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e f i v e g o l d r i n g s ; f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e s i x t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e s i x g e e s e a − l a y i n g , f i v e g o l d r i n g s ; f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e s e v e n t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e s e v e n s w a n s a − s w i m m i n g , s i x g e e s e a − l a y i n g , f i v e g o l d r i n g s ; f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e e i g h t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e e i g h t m a i d s a − m i l k i n g , s e v e n s w a n s a − s w i m m i n g , s i x g e e s e a − l a y i n g , f i v e g o l d r i n g s ; f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e n i n t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e n i n e l a d i e s d a n c i n g , e i g h t m a i d s a − m i l k i n g , s e v e n s w a n s a − s w i m m i n g , s i x g e e s e a − l a y i n g , f i v e g o l d r i n g s ; f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e t e n t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e t e n l o r d s a − l e a p i n g , n i n e l a d i e s d a n c i n g , e i g h t m a i d s a − m i l k i n g , s e v e n s w a n s a − s w i m m i n g , s i x g e e s e a − l a y i n g , f i v e g o l d r i n g s ; f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e e l e v e n t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e e l e v e n p i p e r s p i p i n g , t e n l o r d s a − l e a p i n g , n i n e l a d i e s d a n c i n g , e i g h t m a i d s a − m i l k i n g , s e v e n s w a n s a − s w i m m i n g , s i x g e e s e a − l a y i n g , f i v e g o l d r i n g s ; f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . O n t h e t w e l f t h d a y o f C h r i s t m a s m y t r u e l o v e g a v e t o m e t w e l v e d r u m m e r s d r u m m i n g , e l e v e n p i p e r s p i p i n g , t e n l o r d s a − l e a p i n g , n i n e l a d i e s d a n c i n g , e i g h t m a i d s a − m i l k i n g , s e v e n s w a n s a − s w i m m i n g , s i x g e e s e a − l a y i n g , f i v e g o l d r i n g s ; f o u r c a l l i n g b i r d s , t h r e e f r e n c h h e n s , t w o t u r t l e d o v e s a n d a p a r t r i d g e i n a p e a r t r e e . = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \begin{array}{l} On\ the\ first\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ second\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ third\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ fourth\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ fifth\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ five\ gold\ rings;\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ sixth\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ six\ geese\ a-laying,\ five\ gold\ rings;\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ seventh\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ seven\ swans\ a-swimming,\\ six\ geese\ a-laying,\ five\ gold\ rings;\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ eighth\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ eight\ maids\ a-milking,\ seven\ swans\ a-swimming,\\ six\ geese\ a-laying,\ five\ gold\ rings;\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ ninth\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ nine\ ladies\ dancing,\ eight\ maids\ a-milking,\ seven\ swans\ a-swimming,\\ six\ geese\ a-laying,\ five\ gold\ rings;\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ tenth\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ ten\ lords\ a-leaping,\\ nine\ ladies\ dancing,\ eight\ maids\ a-milking,\ seven\ swans\ a-swimming,\\ six\ geese\ a-laying,\ five\ gold\ rings;\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ eleventh\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ eleven\ pipers\ piping,\ ten\ lords\ a-leaping,\\ nine\ ladies\ dancing,\ eight\ maids\ a-milking,\ seven\ swans\ a-swimming,\\ six\ geese\ a-laying,\ five\ gold\ rings;\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\ On\ the\ twelfth\ day\ of\ Christmas\ my\ true\ love\ gave\ to\ me\\ twelve\ drummers\ drumming,\ eleven\ pipers\ piping,\ ten\ lords\ a-leaping,\\ nine\ ladies\ dancing,\ eight\ maids\ a-milking,\ seven\ swans\ a-swimming,\\ six\ geese\ a-laying,\ five\ gold\ rings;\\ four\ calling\ birds,\ three\ french\ hens,\ two\ turtle\ doves\\ and\ a\ partridge\ in\ a\ pear\ tree.\\ \\===================================================================== \end{array} On the first day of Christmas my true love gave to mea partridge in a pear tree.On the second day of Christmas my true love gave to metwo turtle dovesand a partridge in a pear tree.On the third day of Christmas my true love gave to methree french hens, two turtle dovesand a partridge in a pear tree.On the fourth day of Christmas my true love gave to mefour calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the fifth day of Christmas my true love gave to mefive gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the sixth day of Christmas my true love gave to mesix geese a−laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the seventh day of Christmas my true love gave to meseven swans a−swimming,six geese a−laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the eighth day of Christmas my true love gave to meeight maids a−milking, seven swans a−swimming,six geese a−laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the ninth day of Christmas my true love gave to menine ladies dancing, eight maids a−milking, seven swans a−swimming,six geese a−laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the tenth day of Christmas my true love gave to meten lords a−leaping,nine ladies dancing, eight maids a−milking, seven swans a−swimming,six geese a−laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the eleventh day of Christmas my true love gave to meeleven pipers piping, ten lords a−leaping,nine ladies dancing, eight maids a−milking, seven swans a−swimming,six geese a−laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.On the twelfth day of Christmas my true love gave to metwelve drummers drumming, eleven pipers piping, ten lords a−leaping,nine ladies dancing, eight maids a−milking, seven swans a−swimming,six geese a−laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.=====================================================================