// @topic W07-0-010 C/C++ struct and class
// @brief main driver program using Date class
#include <iostream>
#include <cstdlib>
#include "pixel.h"
#include "date.h"
// Structures in C++ and fundamental properties of C structs
// struct TypeName { ... };
// TypeName object { ... };
// f( &object ); // address-of
// void f( TypeName* pobj );
// obj1 = obj2; // assignment
// sizeof( obj ) sizeof( TypeName ) -- measures sizes in bytes
// obj.field = value;
// ptr_obj->field = value;
int main()
{
// user data types
Date today( 1, 1, 2015 );
Date bday( 2, 2, 2010 );
std::cout << "bday month: " << bday.get_month() << "\n";
//std::cout << "bday month: " << Date::get_month( bday ) << "\n";
std::cout << "today's month: " << today.get_month() << "\n";
system("pause");
return 0;
}
*/