int main(void)
{
//定义对象数组
Coordinate coorArr[2] = {{1, 2}, {3, 4}};
}//这么定义是有前提的,构造函数那边应该是要传初始值进去才行的,如:
public:
Coordinate(int _X, int _Y)
{
m_iX = _X;
m_iY = _Y;
}
亲测可行
{
//定义对象数组
Coordinate coorArr[2] = {{1, 2}, {3, 4}};
}//这么定义是有前提的,构造函数那边应该是要传初始值进去才行的,如:
public:
Coordinate(int _X, int _Y)
{
m_iX = _X;
m_iY = _Y;
}
亲测可行