I am wondering how to get my class to work with the main that I have right here.
The error that I am getting is that there is no matching function call for the class Averager. Here is the simple code that I am testing out right now
Line 25, you are trying to use a default ctor without parms you haven't defined. Since you defined a ctor that takes a double parameter you need to define one that doesn't.
Lines 26-28, you are trying to access a private data member. Can't do that. Either declare include as public OR declare an accessor to add a value.
line 30, where's your calc() member function definition?
If'n you are wanting to get the average of a number of inputs you need to keep track of the number of inputs you provide.
To expand on what others have said, when you talk about:
function call for the class Averager
What that really is is the default constructor. It's the constructor that's automatically called when you create an object but don't specify an argument. You do this on line 25.
If you don't define any constructors for your class, then the compiler will automatically create an empty default constructor for you. But you have defined a constructor (lines 10 - 14), so the compiler doesn't create a default constructor - and, therefore, can't find the one you're attempting to invoke at line 25.