这段代码一执行程序就退出去了,这是怎么回事
CCPasswordDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
CRect rect;
this->GetClientRect(&rect);
//rect.SetRect(100,100,300,400);
CPen pen;
pen.CreatePen(PS_SOLID,1,255);
// pDC->SetBkColor(RGB(0,255,0));
pDC->DrawText("大大大大大大大大大大大",&rect,DT_WORDBREAK);
// pDC->Draw3dRect(&rect,255,RGB(0,255,0));
pDC->SelectObject(&pen);

//画一个图表
POINT point1[10]; for (int i =1 ;i <= 15 ; i++ )
{
point1[i].x = i*10;
point1[i].y = (point1[i].x * 2);
}  其中这段代码一执行就把整个窗口程序关闭了
POINT point1[10];
for (int i =1 ;i <= 15 ; i++ )
{
point1[i].x = i*10;
point1[i].y = (point1[i].x * 2);
}
请教这个问题是怎么回事