> 其他 >
将一整数数列按奇数在前,偶数在后的顺序重新排放,并要求奇偶两部分都是升序排列.c++的.
人气:117 ℃ 时间:2020-05-27 16:52:16
解答
好吧 给你.又简单 又容易理解.呵呵
#include
using namespace std;
int main()
{
int n;/*要排列的个数 n*/
coutn;
int a[100];
for(int i=0;i
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版