Hi everybody,
I want to declare a class having an object of another class as its member data. but I recevie compiler error: "No appropriate default constrctor available"
my code samlpe is as follows:
class bigInt
{
bigInt(unsigned);
bigInt(const bigInt &);
unsigned *value
}
class RSA
{
RSA(unsigned);
bigInt n;
}
RSA::RSA(unsigned m)
{
bigInt n(m);
}
When I add default constructor to bigInt this problem is solved but object n is not created accurately and I got runtime exception while accessing n.
What is my fault?
Thanks in advnce