Yes, dugan is correct. If you supply any constructor with arguments, the compiler will not supply a default constructor. If you need one, you'll have to provide it. For example, consider the following simple class:
Code:
class Foo
{
public:
Foo(int val):x(val) {}
private:
int x;
};
The following statement will not compile, as there is no default constructor:
In this case, you need to add explicitly a no argument constructor to your class definition.