while defining the class is on the right track, you still need to create an object of that class (an instance of class dateReport)
your constructor for your class should initialize all data members of your class so that the object is ready for work.
so in your constructor (and like Daishi said, when you define the methods of your class, you need to use the scope resolution operator ( :: ) to define the methods for the compiler
dateReport::dateReport() // notice the parameters are empty
{
// setting all members of the object to 0
day = 0;
month = 0;
year = 2005; // given from requirements
}
in your main, you need to create the object of the class (instantiate it)
int _tmain(int argc, _TCHAR* argv[])
{
int day1, month1;
dateReport myObject = new dateReport();
//CheckDate(day1, month1); your day1, month1 are not initialized to anything
// so if you call the method with these 2 variables, its garbage
// same below, try looking up a do-while statement for below
//while(CheckDate(day1, month1)) // loops until valid input is detected
{
cout << "Enter A Day" << endl;
cin >> day1;
cout << "Enter A Month" << endl;
cin >> month1;
return 0;
} and to format your data, youll prolly need a method to set the data members to = the input and then have another function to print the output
void dateReport::setDate(int day, int year)
{
//set your data members
}
void dateReport::print()
{
//print the formatted date
}
that should get you started (dont forget to include the sigs for these functions in yer class