class Solution { public: void merge(int A[], int m, int B[], int n) { int temp[m]; int x = 0; // 用temp数组来存储原来A数组中的数据,为了避免当B数组中的数据小于A数组中的数据时进行A数组中数据的往后移动 // 这样就可以直接从0开始到n+m-1放入从小到大的数据 for (int i = 0; i < m; i++) { temp[i] = A[i]; } for (int i = 0, j = 0; i <= m; x++) { // 判断当temp数组中的数据遍历完之后,将B数...