I am getting a debug error when my program reaches:throw invalid_argument( "Month must be between 1-12" );
The error is: R6010 - abort() has been called.
1 2 3 4 5 6 7 8
void Date::setMonth( int m )
{
if ( m > 0 && m <= 12 )
month = m;
elsethrow invalid_argument( "Month must be between 1-12" );
//cout << "Invalid month";
}