天天看点

《C Primer Plus(第6版)中文版》一2.6 多个函数

本节书摘来自异步社区《c primer plus(第6版)中文版》一书中的第2章,第2.6节,作者 傅道坤,更多章节内容可以访问云栖社区“异步社区”公众号查看。

到目前为止,介绍的几个程序都只使用了printf()函数。程序清单2.3演示了除main()以外,如何把自己的函数加入程序中。

程序清单2.3 two_func.c程序

i will summon the butler function.

you rang, sir?

yes. bring me some tea and writeable dvds.

void butler();

继续阅读