daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest May 25th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top