title: Creating a template class for a pair that returns a pair
body: <p>the code isn't working and I'm not sure where I've gone wrong any help would be much appreciated this is the details of the assignment create a class template by writing a template for a class named "Pair". This class will represent a pair of data members of a type that is parameterized in the template definition. For example, you could have a Pair of integers, a Pair of doubles, etc.</p>
  
  <pre><code>/* so I'm trying to implement this driver this is the driver.cpp file and
   * I'm trying to do it with a template class */
  
  int main()
  {
     Pair&lt;char&gt; letters('a', 'd');
     cout &lt;&lt; "\nThe first letter is: " &lt;&lt; letters.getFirst();
     cout &lt;&lt; "\nThe second letter is: " &lt;&lt; letters.getSecond();
  
     cout &lt;&lt; endl;
     cin.get();
  }
  
  //this is my .h file code
  template &lt;class T&gt;
  class Pair
  {
     private:
        T first;
        T second;
     public:
        Pair(const T, const T);
        T getFirst();
        T getSecond();
  };
  
  //this is my Pair.cpp
  #include "Pair.h"
  
  
  template&lt;class T&gt;
  Pair&lt;T&gt;::Pair(const T first, const T second)
  {
     return first, second;
  }
  
  template&lt;class T&gt;
  inline T Pair&lt;T&gt;::getFirst()
  {
     return first;
  }
  
  template&lt;class T&gt;
  inline T Pair&lt;T&gt;::getSecond()
  {
     return second;
  }
  </code></pre>