C++ 二维数组 New 和 delete

	int ** g_bgMartrix = new int*[16]
     for(int i = 0; i < 12; i ++)
	{
		g_bgMartrix[i] = new int[10];
		for(int j = 0; j < 16; j++)
		{
			g_bgMartrix[i][j] = gamePad[i][j];
		}
	}
     delete []g_bgMartrix;
posted @ 2011-01-29 12:43  jeekun  阅读(580)  评论(3编辑  收藏  举报