我作華爲機試題

選取了幾個題目,練習了一下編程...ios 1. 對一個數組,將數組中偶數從大到小排序,奇數從小到大排序,奇數和偶數交叉着放且輸出數組第一位放奇數  若奇數和偶數不等長,則把剩下的直接放到數組中。編程 #include <stdio.h> #include <iomanip> #include <iostream> using namespace std; void bubble(int nAr
相關文章
相關標籤/搜索