Distribution of variables 2D array

xiaoxiao2021-03-06  40

#include "stdio.h"

Void main () {

INT N, ** A;

Scanf ("% d", & n);

a = new int *;

For (int i = 0; i

For (int J = 0; j <3; j )

a [i] = new int;

For (int i = 0; i <3; i )

For (int J = 0; j

a [i] [j] = 2;

For (int i = 0; i <3; i )

For (int J = 0; j

Printf ("A [% D] [% D] =% D / T", I, J, A [I] [J]);

}

转载请注明原文地址:https://www.9cbs.com/read-54272.html

New Post(0)