二维数组

#include "stdafx.h"
#include "windows.h"

int main()
{
	int a[3][4] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 };
	int i, j;

	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 4; j++)
		{
			printf("%d ", a[i][j]);
		}
		printf("
");
	}
	system("pause");

	return 0;
}

  

 

但我的VS2013实现不了

第二个维度不写的话:

实现转置:

原文地址:https://www.cnblogs.com/EvilAnne/p/9689629.html