Category : linked-list

this is what I’m coding: template<typename T> inline void LinkList<T>::print() const { for (Iterator<int> iter = begin(); iter != end(); ++iter) { std::cout << *iter << std::endl; } return; } and it’s saying that this line: (Iterator<int> iter = begin(); iter != end(); ++iter) has this error: `const Iterator<T> LinkList<T>::begin(void)’ cannot convert `this` pointer from ..

Read more