已采纳回答 / 慕仔2440551
MyList.h#include"stdafx.h"#ifndef LIST_H#define LIST_H#include"Coordinate.h"class List{public: List(int size); ~List(); void ClearList(); bool ListEmpty(); int ListLength(); bool GetElem(int i, Coordinate *e); int LocateElem(Coordinate *e); bool PriorEle...
2017-08-16
已采纳回答 / 慕后端8104118
不用改,因为把m_pList[i]赋值给*e,指针e指向地址中对象的值就变成了m_pList[i],外部就可以通过传入的指针访问该对象的值,也就是m_pList[i]。
2017-08-14
最赞回答 / 慕姐3581915
http://blog.csdn.net/johnny710vip/article/details/7281131 应该是里面第一个顺序定义struct一个意思吧,i用来实例化data,nullptr用来实例化指针
2017-07-03