摘要: #include <stdio.h>int main(void){ printf("%d\n", 6); printf("%4d\n", 6); /*至少4位字符宽*/ printf("%03d\n", 6); /*至少3位字符宽,且不足则补0*/ printf("%04d\n", 6); printf("%02x\n", 19); /*至少2位字符宽,16进制输出,不足则补0*/ printf("%f\n", 6); printf("%f\n" 阅读全文
posted @ 2012-11-21 20:46 helloweworld 阅读(2027) 评论(0) 推荐(0) 编辑
摘要: Bell实验室、通用电气和MIT合作MULTICS(MULTiplexed Infomation and Computing Service,多路复用信息与计算服务),后Bell实验室退出。 Bell实验室只留下Ken Thompson继续研究MULTICS,后他发明精简版MULTICS,即是后来的UNIX。 Thompson和Ritchie(里奇,c语言之父)合作,用c重写UNIX,发表UN... 阅读全文
posted @ 2012-11-21 11:13 helloweworld 阅读(266) 评论(0) 推荐(0) 编辑