摘要:
#include <iostream> using namespace std; int *f(int a[][2]){ for(int i=0;i<2;i++){ for(int j=0;j<2;j++){ a[i][j]++; } } return *a; } int main(){ int a 阅读全文
posted @ 2024-07-08 09:43
最后一个还有我
阅读(11)
评论(0)
推荐(0)
摘要:
#include <iostream> //二维数组在函数中的传递 //1.一维数组 //2.函数√ //3传递的方式√ //4.返回二维数组 using namespace std; int main(){ /* 1.二维数组的初始化定义: int a[][];//定义方式错误,编译不成功 int 阅读全文
posted @ 2024-07-08 09:26
最后一个还有我
阅读(15)
评论(0)
推荐(0)

浙公网安备 33010602011771号