First of all I'll give a contest as it seems I'm trying to make something inappropriate.

The aim is to add a new line to the array on each iteration of the loop.

The loop is "implied" by "void CMyAppViw::OnLB uttonDown(...)"

I've tried to make it in a number of ways but filed. Here is the recent one:
Code:
int n=1;
int array[1][2][3];


void CMyAppView::OnLButtonDown(UINT
...