C++ syntax question
<p>I need help with a c++ syntax issue I'm having.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;vector&gt;
#include &lt;string&gt;
#include &lt;cmath&gt;
#include &lt;fstream&gt;
#include &lt;stdlib.h&gt;
#define RANGE 15.0

#define NUMBINS 15

struct _freq
{

    float ini, end;
    int q;
};

typedef _freq freq;

vector&lt;freq&gt; alphaCutoffSelector(vector&lt;atom&gt; A,string _i,string _j,float r=RANGE,
                                 int b=NUMBINS);

vector&lt;freq&gt; alphaCutoffSelector(vector&lt;atom&gt; A,string _i,string _j,float range,
                                 int bins)
{
    vector&lt;freq&gt; F;
    freq *f;
    double D;

    for (int i=0;i&lt;bins;i++)
    {
      f=new freq;
      f-&gt;ini=i*(range/bins);
      f-&gt;end=f-&gt;ini+range/bins;
      f-&gt;q=0;
      F.push_back(*f);
    }

    for(int i=0;i&lt;A.size();i++)
    {
      for (int j=0;j&lt;A.size();j++)
      {
        for(int k=0;k&lt;bins;k++)
        {
           if(i!=j &amp;&amp; A[i].getResName()==_i &amp;&amp; 
              A[j].getResName()==_j &amp;&amp; A[i].getAtomName()=="CA" &amp;&amp;
              A[j].getAtomName()=="CA")
              {
                   D = (A[j].getX()-A[i].getX())*(A[j].getX()-A[i].getX()) + (A[j].getY()-A[i].getY())*(A[j].getY()-A[i].getY()) + (A[j].getZ()-A[i].getZ())*(A[j].getZ()-A[i].getZ());

                 if (D &gt; (k*range/bins)*(k*range/bins) &amp;&amp; D &lt;= ((k+1)*range/bins)*((k+1)*range/bins))
                 {
                    F[k].q=F[k].q+1;
                 }
               }
             }
           }      
        }

        return F;
     }

     vector&lt;freq&gt; C;
     string RN[] = {"ALA","ARG","ASN","ASP","CYS","GLU","GLN","GLY","HIS","ILE","LEU","LYS","MET","PHE","PRO","SER","THR","TRP","TYR","VAL"};

    int i,j;
    for (i=0;i&lt;20;i++)
    {   
      for (j=0;j&lt;20;j++)
      {
         if (i&lt;=j)
         {
           C=alphaCutoffSelector(atoms,RN[i],RN[j]);
           cout &lt;&lt;RN[i] &lt;&lt;"-" &lt;&lt;RN[j];

           for (int n=0;n&lt;NUMBINS;n++)
           {
             cout &lt;&lt;" " &lt;&lt;C[n].q; 
           }

           cout &lt;&lt; endl;
           C.clear();

          }
       }
    }

    return 0;
}
</code></pre>

<p>Attempts to compile this using g++ -c try.cc result in the following error messages:</p>

<blockquote>
  <p>try.cc:1: error: expected constructor,
  destructor, or type conversion before
  '&lt;' token.</p>
</blockquote>

<p>what should i do??</p>

<p><em>[I tried - Ed.]</em></p>
