Class two has no member v error
<p>I am new to C++ and I have a problem.I am trying to make to classes mutual friend,and accessing different members in one from the other one.I can't figure out what is that I do wrong.Here is what I have so far:</p>

<pre><code>#ifndef HA_H_
#define HA_H_
#include"Ha2.h"
using namespace std;
class two;
class one{
public:
    int tip;
    int timp;
    one(int t) :tip(t){}
    friend class two;
};


#endif /* HA_H_ */
</code></pre>

<p>The second header:</p>

<pre><code>#ifndef HA2_H_
#define HA2_H_
#include"Ha.h"
#include&lt;vector&gt;
class one;
class two{
public:
    vector&lt;one&gt; v;
   vector&lt;int&gt; x;
   inline void create_x(vector&lt;one&gt; v){
     // vector&lt;one&gt;::iterator it=v.begin();
      int i;
      for(i=0;i&lt;v.size();i++){
          x.push_back(v.at(i).tip);
      }

   }

    friend class one;
};


#endif /* HA2_H_ */
</code></pre>

<p>And the main:</p>

<pre><code>#include&lt;vector&gt;
#include&lt;iostream&gt;
#include"Ha.h"
#include"Ha2.h"
int main()
{
one o(3);
two x;
x.v.push_back(o);

x.create_x(x.v);
cout&lt;&lt; x.x.back();
}
</code></pre>

<p>And I get several errors like:
class two has no member named 'v'</p>

<p>Any advice?Thank you.</p>
