c++ .h and .cpp files - about methods
<p>HI.</p>

<p>How can I define a bool method in .h file and work with it in the cpp file?
I have</p>

<p>my.h</p>

<pre><code>#include &lt;string&gt;

public class me;
class me
{
public:
me();

private bool method(string name); //it is ok??

}
</code></pre>

<p>my.cpp</p>

<pre><code>#include 'my.h';
me::me()
{
method(string name); //can i do this? isn't there another alternative?
}

method (String name)
{
cout&lt;&lt;"name"&lt;&lt;endl;
}
</code></pre>

<p>is not working.why?</p>
