2023年11月29日

[good]c语言函数指针的运用

摘要: #include <stdio.h> #define MAX 10 void swap(int *x, int *y) { int temp; temp = *x; *x = *y; *y = temp; } void fun(int *height, int *age) { int n = 10; 阅读全文

posted @ 2023-11-29 09:55 风中狂笑 阅读(3) 评论(0) 推荐(0) 编辑

[good]c语言数组的运算

摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define MAX 10 int **createRandom2DArray(int rows, int cols) { srand(time(NULL)); // 初始化随机数生成 阅读全文

posted @ 2023-11-29 09:53 风中狂笑 阅读(5) 评论(0) 推荐(0) 编辑

导航