Is it okay to return vector in main
<p>I am wondering is it okay to return a vector in <code>main()</code>? For example, </p>

<pre><code>aSpecialVectorType main()
{
    aSpecialVectorType xxx(vector::zero);
    // do something here;
    return xxx;
}
</code></pre>

<p>Do I need to forward declare "<code>class aSpecialVectorType;</code>" before <code>main()</code>?</p>

<p>And btw, is it legal to use another name other than "<code>main</code>" in c++?</p>

<p>Thanks</p>

<h2>Edit1:</h2>

<p>If not, what is the best way that it can output a vector?</p>

<p>My friend ask me to give him a blackbox that can serve as "vector in and vector out", he will use his matlab code to call my code. That's why I am asking.
I know how to vector in, but not sure if there is an easy way to output a vector.</p>

<p>Thanks</p>

<h2>Edit2:</h2>

<p>I am surprised why C++ has such an standard, any explanation? :)</p>
