#include "date.h" #include <iostream> using namespace std; /* program a date osztály tesztelésére */ int main() { date today( 2019, 2, 21 ); //date error( 2018, 09, 12 ); date d; d.read( std::cin ); d += 32; today.print( std::cout ); d.next(); d.set_year( d.get_year() + 1 ); date s( "2017.3.12" ); s.add( 15 ); ++s; const date birth_day( 1975, 7, 14 ); birth_day.print( std::cout ); if( s == d ) { d++; } }