顺序表的线性表实现.pdfVIP

  • 6
  • 0
  • 约2.97千字
  • 约 3页
  • 2017-06-09 发布于河南
  • 举报
顺序表的线性表实现

1 #include iostream 2 #include list.h 3 4 using namespace std; 5 6 int main () 7 { 8 celltype *L=new celltype; 9 celltype *pt=L; 10 for (int i=0;i10;i++) 11 { 12 Insert(i,pt); 13 pt=pt-next; 14 } 15 pt-next= NULL; 16 Print (L);//???? 17 cout\n; 18 celltype* pointer=Locate (2,L); 19 coutpointer-next-elementendl; 20 Delete (L-next-next); 21 coutAfter Delete:endl; 22 Print (L); 23 celltype* ptor1=End (L); 24 position ptor

文档评论(0)

1亿VIP精品文档

相关文档