顺序表基本操作,引用做传递参数
怎么用c++的引用“&”,传递参数,需要包含哪些头文件这个是初始化线性表的代码
Status InitList(SqList &L)
{
L.elem = new ElemType[MAXSIZE];
if(!L.elem)
exit OVERFLOW;
L.length = 0;
L.listsize = MAXSIZE;
return OK;
}//InitList
错误指示是missing')'before &
求指教
2013-04-24 22:02
2013-04-24 22:49

2013-04-25 12:29