KeyFC欢迎致辞,点击播放
资源、介绍、历史、Q群等新人必读
KeyFC 社区总索引
如果你找到这个笔记本,请把它邮寄给我们的回忆
KeyFC 漂流瓶传递活动 Since 2011
 

超强的C代码......四行算出PI 后面800位......

[ 12826 查看 / 38 回复 ]

回复:超强的C代码......四行算出PI 后面800位......

说实话TC是不很好的东西哦,似乎几年前就淘汰了,之所以用这个主要是因为操作起来简单........

KANON!MAI!!!
虽然AIR最高……
TOP

回复:超强的C代码......四行算出PI 后面800位......

以下引用Rinrin在2006-1-24 0:12:55的发言:
弟兄们了解IOCCC么?
可以google一下~~~


baidu一下……这东西好玩……不过大概玩不起orz
http://blog.donews.com/dereck/articles/311758.aspx
AJI,舰狗
TOP

回复:超强的C代码......四行算出PI 后面800位......

TC 3.0编译通过(找了N张旧碟才找到TC3.0)
-----------------//以下是程序的运行结果
Invalid keyboard code specified
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 eigth 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.
TOP

回复:超强的C代码......四行算出PI 后面800位......

估计现在还有不少学校还在用TC 2.0……
IOCCC那种代码玩玩可以,不过完全不值得提倡,个人认为代码的清淅可读性是最重要的。
自己写的某个函数或类,如果你不详细给出输入输出功能及相关注释,过一段时间你搞不好看不懂你自己写的程序……
TOP

回复:超强的C代码......四行算出PI 后面800位......

话说……某的机器里有TC2.0汉化TC++…………还有TP还有FP orz……………………
AJI,舰狗
TOP

回复:超强的C代码......四行算出PI 后面800位......

我也搜了IOCCC~~~~~
那个Anders Gavare也太狠了!!!!!
我进他的网站~~~~点了一个连接后.......
被弹了100个窗口出来!!!!!!!
然后瞬间全部消失了.........
可恶......耍我........
我是宇宙中的一颗不显眼的小星星。对我来说,朋友们就像星空里的其他星星们那样的美丽且遥远。我总是想要触摸到他们,却总是够不到他们那遥远的身影。于是我开始感到悲伤,开始讨厌那广阔无边的宇宙。是它,把我们分开了!直到某一天,美丽的流星雨带来了朋友们的微笑。我才知道,原来自己是多么的傻。对啊,我们是朋友,无论有多么遥远的距离,我们永远是朋友。于是我又抬头看了看我的朋友们,看到的再也不是悲伤。因为他们都在自己努力着,他们都在向我一闪一闪地展示他们坚强的笑容...
TOP

回复:超强的C代码......四行算出PI 后面800位......

以下引用Rinrin在2006-1-24 0:12:55的发言:
弟兄们了解IOCCC么?
可以google一下~~~

原来如此。。。
懂了,对不起lz
无语。。。
哪有豆腐>_<
僕のことを忘れないで下さい、約束。
TOP

回复:超强的C代码......四行算出PI 后面800位......

这个...
lz的代码我们曾经讨论过
结论是:
...这小子就是拿来显的...
TOP

回复:超强的C代码......四行算出PI 后面800位......

第二个用VC可以编译,但是文件扩展名必须为.c,也就是说不能当作C++程序。
要说古董级编程工具,我这里很多,例如GWBASIC、True BASIC、Turbo Pascal 3.0、MS Fortran 3.13、MASM 4.0、Turbo BASIC 1.0、VB 1.0 For DOS、PC Logo 4.0、Turbo Prolog 1.1等。
KEYFC第二届版杀 - 川澄 舞
TOP