摘要: Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case, th 阅读全文
posted @ 2019-07-02 19:18 王清河 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 函数样例: 运行结果: exbot@ubuntu:~/wangqinghe/DeBug/20190702$ gcc sum.c -o sum exbot@ubuntu:~/wangqinghe/DeBug/20190702$ ./sum 10 20 30 0 argument is 10.000 s 阅读全文
posted @ 2019-07-02 15:37 王清河 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 一个函数可以接受不定数的参数个数,这就是可变参数函数,比较常见的比如printf(),scanf(); 变量参数函数的简单实现: 结果如下: exbot@ubuntu:~/wangqinghe/DeBug/20190702$ ./VA num:5, vl:1020625376 in for resu 阅读全文
posted @ 2019-07-02 11:25 王清河 阅读(1050) 评论(0) 推荐(0) 编辑