New to C++, not to programming. Everything appears to be working except the constructor with no parameters. When I try to instantiate Dog using it, I get these errors:
[Error] request for member 'printinfo' in 'dog3', which is of non-class type 'Dog()'
[Error] request for member 'bark' in 'dog3', which is of non-class type 'Dog()'
Surely its something simple, but I can't figure out what it is for the life of me...
Line 56 prototypes a function that takes no parameters and returns a Dog. Either omit the parentheses (they do nothing), or replace them with curly braces.