Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test2.cpp: In member function ‘ListNode<T>* List<T>::find(int) [with T = int]’:
- test2.cpp:57: instantiated from ‘void List<T>::insert(int, const T&) [with T = int]’
- test2.cpp:105: instantiated from here
- test2.cpp:85: error: cannot convert ‘ListNode<int>’ to ‘ListNode<int>*’ in initialization
- The new main method:
- int main()
- {
- List<int> myList;
- cout << "Some text" << endl;
- int one = 1;
- myList.insert(0, one);
- int value;
- myList.retrieve(0, value);
- cout << "Value is: " << value << endl;
- }
Add Comment
Please, Sign In to add comment