您当前的位置: 首页 >  c语言

C语言顺序表:奇数放偶数前

川川菜鸟 发布时间:2021-03-29 13:32:24 ,浏览量:3

#include

#pragma warning(disable:4996)
using namespace std;
#define  MAXSIZE  20
typedef  int  ElemType;
typedef  struct
{
    ElemType  data[MAXSIZE];//最长为20个
    int   len;
} SqList;//定义结构体变量
void move(SqList & sq)
{
    ElemType t;
    int i = 0, j = sq.len - 1;
    while (i             
关注
打赏
1688896170
查看更多评论
0.0578s