标签:style blog ar io color sp for div log
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include <stdio.h>
#include <stdlib.h>
void main() { int num[3][4]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { num[i][j] = i * 4 + j + 1; printf("%-6d", num[i][j]); } printf("\n"); } getchar(); }
#define _CRT_SECURE_NO_WARNINGS #include <Windows.h> #include <stdio.h> #include <stdlib.h> void main() { int num[3][4]; for (int i = 0; i < 3*4; i++) { num[i / 4][i % 4] = i + 1; } for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { printf("%-6d", num[i][j]); } printf("\n"); } getchar(); }
标签:style blog ar io color sp for div log
原文地址:http://www.cnblogs.com/or2-/p/4168111.html