摘要: 自定义一个模仿strlen()函数功能的函数 //my_strlen()函数声明,返回字符数组中字符的个数 //参数为字符数组的地址 int my_strlen(char* str); int main(void) { char ch[] = "test"; printf("%d\n", my_st 阅读全文
posted @ 2022-12-04 20:13 codels 阅读(96) 评论(0) 推荐(0)
摘要: 递归打印m到n的值 #include <stdio.h> //递归打印min到max的值: //min最小值max最大值: int f(int min, int max) { if (max < min) { printf("输入错误:\n"); return 0; } printf("%d\n", 阅读全文
posted @ 2022-12-04 20:02 codels 阅读(41) 评论(0) 推荐(0)