voidInitList(SqList&L){//初始化顺序表L L.length=0; } voidDestroyList(SqList&L){//销毁顺序表L,此处没有具体实现 } intGetLength(SqListL){//求长度 returnL.length; } voidCreateList(SqList&L,ElemTypea[],intn){//整体创建顺序表L inti,k=0;//k累计顺序表L中的元素个数 for(i=0;i<n;...
{ int a,b,t; scanf("%d,%d",&a,&b); t=a; a=b; b=t; printf(“a=%d,b=%d\n”,a,b); return 0; } 救命啊,小白求救 分享241 c语言吧 星海群♬耀 大佬们,为什么顺序表初始化表函数定义为void InitList(SqList & L),而销毁线性表为void DestroyList(SqList L),里面的&L和L有什么...
祝大家新年快乐 大家可以按自己创意给全体c语言吧友一句祝福 分享23赞 c语言吧 滁强扶弱 请教数据结构C语言中引用问题#include <stdio.h>#include "malloc.h"#define LIST_INIT_SIZE 100typedef struct { int *elem;int length;int Listsize;}Sqlist;int InitList 分享16赞 c语言吧 鬼泣HALO (int *)...