title: default constructor not generated?
body: <pre><code>#include &lt;iostream&gt;    
  using namespace std;
  
  class T
  {
      public:
      T(int h){item = h;}
      int item;    
  };
  
  int main()
  {
      T a;
      cout &lt;&lt; a.item &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>I am getting an error : cannot find <code>T::T()</code>, I know that the compiler does not generate an implicit constructor when I declare constructors with parameters, and this could be fixed by changing the constructor parameter to <code>int h = 0</code>, but is there any other way to get rid of error?</p>