Guest User

Untitled

a guest
May 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. test2.cpp: In member function ‘ListNode<T>* List<T>::find(int) [with T = int]’:
  2. test2.cpp:57: instantiated from ‘void List<T>::insert(int, const T&) [with T = int]’
  3. test2.cpp:105: instantiated from here
  4. test2.cpp:85: error: cannot convert ‘ListNode<int>’ to ‘ListNode<int>*’ in initialization
  5.  
  6.  
  7. The new main method:
  8.  
  9. int main()
  10. {
  11. List<int> myList;
  12. cout << "Some text" << endl;
  13. int one = 1;
  14. myList.insert(0, one);
  15. int value;
  16. myList.retrieve(0, value);
  17. cout << "Value is: " << value << endl;
  18. }
Add Comment
Please, Sign In to add comment