#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;
#include <queue>
int a[3][3] = {
{1,2,3},
{4,5,6},
{7,8,9}
};
typedef int t[3][3];
queue<t> q;
int main()
{
q.push(a);
return 0;
}
1条回答 默认 最新
- YouthUpward 2022-04-22 15:24关注本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用城北徐公O_o 2022-11-01 06:59
具体一点的样例有没有啊,大佬给个参考呗,我打算保存一个n*4的二维数组,但我这样写的好像是一维的,类里面怎么定义啊
class Point//点类 { public: //使用初始化表初始化点类 Point(float a = 0, float b = 0, float c = 0, int d = 0) :x(a), y(b), z(c), tef(d) {} protected: float x; float y; float z; int tef; };
赞回复