![]() |
#2
Jonny02012020-08-16 14:15
|

class AA
{
struct Cell
{
int x;
int y;
String value;
};
struct Cell m_cell[3][20];
}
{
struct Cell
{
int x;
int y;
String value;
};
struct Cell m_cell[3][20];
}
在AA类里定义struct Cell类型的结构体,如何在m_cell[3][20]初始化的时候对结构体里部分数据进行赋值,不是那种一个变量一个变量赋值的方式。m_cell[3][20]为AA类中的全局变量。