box2d var access  from diff class in iphone using c++
<p>i have a car.h </p>

<p>now inside the car.h i did</p>

<pre><code>float cc;
void Step(Settings* settings)
    {


        Test::Step(settings);


    cc=m_rightWheel-&gt;GetWorldCenter().x;// cc hold wheel value i needs this in other class

    }
</code></pre>

<p>now i want to access the <strong>value of cc</strong> in other class , so i did</p>

<pre><code>// in VC.h
Car car;

// in VC.m

NSLog(@"car is moving at %f",car.cc );// not working
NSLog(@"car is moving at %f",car-&gt;cc );// not working
</code></pre>

<p>how to get the value of cc here ??</p>
