If my vector doesn't contain a construct how to set it to zero : <p>I get the no default constructor exists for class "vector" Error</p>

<p>main.cpp</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include "myVector.h"

using namespace std;

int main()
{   
    vector&lt;int&gt; myvecA;
    cout &lt;&lt; "Vector A size: " &lt;&lt; myvecA.size() &lt;&lt; endl;

system("Pause");
return 0;
}
</code></pre>

<p>myVector.h</p>

<pre><code>#include &lt;iostream&gt;
 using namespace std;


 template &lt;class V&gt;
 class vector{

public:
 vector(V x) {
    bool(x = 0)
        sizearr = 0;
    if (x != 0)
        return x;
    sizearr = x;

}

  V size();

private:

  V sizearr;

};

template &lt;class V&gt;

 V vector&lt;V&gt;::size() {
     return sizearr;
}
</code></pre>

<p>I don't know how to make it so that if </p>

<pre><code>vector&lt;int&gt; myvecA;
</code></pre>

<p>doesn't contain a construct that it will set the construct to 0 so i can return size as 0.</p>

<p>I apologize if my question is not very clear. I'm just look for help so I can learn.I'm not very good at c++.</p>
