Want more features on Pastebin? Sign Up, it's FREE!
Guest

List.cpp

By: anonymous_infoholic on Apr 18th, 2012  |  syntax: C++  |  size: 0.19 KB  |  views: 63  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <iostream>
  2. #include "List.h"
  3.  
  4. template<typename T>
  5. void List::Add(const T& el)
  6. {
  7.         Node* head = new Node(el);
  8.         if ( Compare(el,i) > i )
  9.                 std::cout << "Ok" << std::endl;
  10.  
  11. }
clone this paste RAW Paste Data