error: no matching function for call to 'b::b()'
<p>Hi I'm just begin to program in C++ but I have a problem. I try to create a class in an other class but it does not work... Could you help me please?</p>

<p>this is my main :</p>

<pre><code>#include &lt;iostream&gt;
#include "a.hpp"
#include "b.hpp"

using namespace std;



int main()
{

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

<p>and this is my first class a cpp : </p>

<pre><code>#include &lt;iostream&gt;
#include "a.hpp"

using namespace std;

a::a(){} /* The problem is here :error: no matching function for call  
to 'b::b()*/
a::~a(){}

void a::write()
{

cout &lt;&lt; "Write a number : " &lt;&lt; endl;
cin &gt;&gt; m_number;
}
</code></pre>

<p>this is the hpp :</p>

<pre><code>#ifndef A_HPP_INCLUDED
#define A_HPP_INCLUDED

#include "b.hpp"


class a : public b
{
public:
a();
~a();
void write();

protected:
int m_number;
};


#endif // INTERFACE_HPP_INCLUDED
</code></pre>

<p>the class b cpp :</p>

<pre><code>#include &lt;iostream&gt;
#include "b.hpp"


using namespace std;
b::b(double c, double d){m_c = c; m_d = d}
b::~b(){}

void b::write1()
{
cout &lt;&lt; m_c+m_d&lt;&lt; endl;
}
</code></pre>

<p>and the hpp :</p>

<pre><code>#ifndef B_HPP_INCLUDED
#define B_HPP_INCLUDED


class b
{
public:
b(double c, double d);
~b();


void writed1();

protected:
double m_c;
double m_d;
};


#endif // B_HPP_INCLUDED
</code></pre>

<p>Thanks a lot for your help !!!</p>