int main(void)
{
//定义对象数组
Coordinate coorArr[2];
Coordinate *p;
p = coorArr;
p->m_iX = 1;
p[0].m_iY = 2;
p++;
p->m_iX = 3;
p->m_iY = 4;
delete p;
p = NULL;
一样不给过,o(╥﹏╥)o,自己下面跑还是没错的
{
//定义对象数组
Coordinate coorArr[2];
Coordinate *p;
p = coorArr;
p->m_iX = 1;
p[0].m_iY = 2;
p++;
p->m_iX = 3;
p->m_iY = 4;
delete p;
p = NULL;
一样不给过,o(╥﹏╥)o,自己下面跑还是没错的
那个词本来就是t的音,英[i':əʊstri:m] 美[i':oʊstri:m]
stream 英[stri:m]美[strim]
stream 英[stri:m]美[strim]
2017-08-10
Coordinate(int x, int y)
{
m_iX = x;
m_iY = y;
}
// 打印坐标的函数
void printInfo()
{
cout << "(" << m_iX << "," << m_iY << ")"<< endl;
}
int main(void)
{
//定义对象数组
Coordinate coorArr[2] = {{1,2},{3,4}};
return 0;
}
{
m_iX = x;
m_iY = y;
}
// 打印坐标的函数
void printInfo()
{
cout << "(" << m_iX << "," << m_iY << ")"<< endl;
}
int main(void)
{
//定义对象数组
Coordinate coorArr[2] = {{1,2},{3,4}};
return 0;
}