顺序线性表的c++实现

#include <iostream>
#define ElemType int
const int ListInitSize=7;
using namespace std;
struct SList
{
     ElemType *elem;
     int length;
     int listsize;
};
bool ListCreate(SList &L,int n,ElemType a[])
{
    L.elem = new ElemType[n+ListInitSize];
    if(!L.elem)         return false;
    L.length = n;
    L.listsize = n+ListInitSize;
    return true;
}

 

1.根据我的程序   写一个简单的顺序表(只要表不要其他任何功能)

2.删除顺序表大于x的元素

你自己写遇到什么问题么?