已采納回答 / 慕仔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 應(yīng)該是里面第一個順序定義struct一個意思吧,i用來實例化data,nullptr用來實例化指針
2017-07-03
最新回答 / Daniel9618
因為locateElem函數(shù)要求形參是指針類型的,而priorElement函數(shù)中形參currentElem也是指針類型,所以不用加*
2017-06-19