主函数那里如何引用这个函数
#include<stdio.h>int main()
{
int i = 0;
}
void MergeList(SqList lA,SqList LB,Sqlist &LC)
{
LC,length=LA.length+LB,length;
LC.elem=new ElemType;
pc=LC.elem;
pa=LA.elem;
pb=LB.elem;
pa_last=LA.elem+LA.length-1;
pb_last=LB.elem+LB.length-1;
while((pa<=pa_last)&&(pb<=pb_last))
{
if(*pa<=*pb) *pc++=*pa++;
else *pc++=*pb++;
}
while(pa<=pa_list) *pc++=*pa++;
while(pb<=pb_list) *pc++=*pb++;
}
页:
[1]