11 2024 档案
摘要:众所周知,C语言的scanf()位于<stdio.h>,用于输入数据,但一直以来我都对它的使用方式似懂非懂,今天我们来详细聊聊它。 scanf意为“scan format”, 即格式化输入,原型如下: int scanf(const char *format, ...); 一、基础使用方式 #inc
阅读全文
摘要:Epigrams on Programming 转载自这里 Alan J. Perlis Yale University This text has been published in SIGPLAN Notices Vol. 17, No. 9, September 1982, pages 7 -
阅读全文
摘要:为什么“C语言具有可移植性”? "Any problem in computer science can be solved with another layer of indirection" C语言的设计特性使然,例如其I/O不依赖于特定平台,而是依赖于stdio.h,而库在不同平台上可以有不同
阅读全文