You forgot the parenthesis to show the compiler that you want to call a function: cout << "Current date is:\n" << MyDate.getCmonth() << "/" << MyDate.getCDay() << "/" << MyDate.getCyear();
The compiler says exactly what is the problem: "too few arguments in function call". Meaning that you have to provide some parameters to the function.
For example:
1 2 3 4 5 6 7 8 9 10 11
class C {
public:
int multiplyBy2(int x) { return x * 2; }
};
void main()
{
C c;
cout << c.multiplyBy2(); // "too few arguments in function call" - function doesn't know what should be multiplied by 2
cout << c.multiplyBy2(1); // ok
}
Same is valid for the member functions of the MyDate object. Take a look at which parameters are required and pass them to the function call.