title: Here is some error with my .h file which show [Error] unterminated #ifndef when I include my class template in it
body: <p><strong>Header file</strong></p>
  
  <pre><code>#ifndef WIKI_H
  #define WIKI_H
  
  template&lt;class T&gt;
  
  class Rectangle
  {
  
      private:
  
          T length;
          T breadth;
  
          void printarea();
  
          public:
  
              Rectangle();
  };
  </code></pre>
  
  <p><strong>source file</strong></p>
  
  <pre><code>#include "Wiki.h"
  #include &lt;iostream&gt;
  
  using namespace std;
  
  void Rectangle::printarea()
  {
  
      cout&lt;&lt; "Area = " &lt;&lt; length*breadth &lt;&lt;endl; 
  }
  
  Rectangle::Rectangle()
  {
  
      cout&lt;&lt; "Enter Length" &lt;&lt;endl;
      cin&gt;&gt; lenght;
      cout&lt;&lt; "Enter Breadth" &lt;&lt;endl;
      cin&gt;&gt; breadth;
  
      printarea();
  } 
  </code></pre>
  
  <p><strong>main file</strong></p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "Wiki.h"
  
  using namespace std;
  
  int main()
  {
  
      Rectangle&lt;int&gt;X;
  
      return 0;
  }
  </code></pre>