syntax error : missing ';' before '{'
<p>I have written a simple class with two property(arrays).
I am trying to initiliaize all the array element to 0 or NULL but the compiler(vc++ 2010) throw me errors.</p>

<pre><code>class Marina{
public:
char port[100];
char bport[25];

Marina(){
this-&gt;port = {0};
this-&gt;bport = {0}; 
}

};
</code></pre>

<p>I have also tried a simple statement like this:</p>

<pre><code>class Marina(){
public:
char port[100] = {0};
char port[25] = {0};



};
</code></pre>
