[C++]
Given a dynamic two-dimensional array of size r x c. Implement the function int** insertCol(int**& matrix, int r, int c, int* colArr, int col) that can insert the colArr array (with the size r) into the column position, col, of the matrix. Input: The two-dimensional matrix of size r x c, the insert column rowArr and the insert position col. Output: The two-dimensional matrix after insert. For example: Test Input Result 1 23 1273 1 2 3 4 5 8 6 4 5 6 2 78
[C++]
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am