CodePudding user response:
Array is on the stack, cannot return directly, you can use two ways toOne is packing to struct, it is to return a heap memory is a pointer,
CodePudding user response:
I want to make it similar to Python np. Zero (m, n) function or a class, enter the row and column value output a two-dimensional array (value is 0, and then the changes can be),