摘要: 十进制转二进制 递归的方法 阅读全文
posted @ 2019-07-28 21:45 Coding_Changes_LIfe 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1、函数返回值 2、函数的包含 头文件:luoxu.h 源文件有两个:test.c,funtions.c 源文件内部的各个.c源文件中的函数可以相互调用,但需要事先声明函数原型,这就是头文件的作用 luoxu.h funtions.c test.c 函数的入口 3、函数参数的值传递 局部变量是为块语 阅读全文
posted @ 2019-07-28 19:55 Coding_Changes_LIfe 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #include #include void numReverse(int num); void numReverseWithoutArr(int num); void main(){ numReverse(123459); getchar(); } void shuiXian(){ //求水仙花数(一个三位数,其各位数字的立方和等于该数本身) int num, f, s, t;... 阅读全文
posted @ 2019-07-28 12:18 Coding_Changes_LIfe 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 除非跳出多个循环嵌套和远程注入技术,否则尽量少用goto goto会降低程序的可读性,让代码难以调试 利用递归也可以实现循环结构和do while类似 阅读全文
posted @ 2019-07-28 09:22 Coding_Changes_LIfe 阅读(269) 评论(0) 推荐(0) 编辑