#include #include "validate.h" #include "funcList.h" bool ValidateSubtract( const string& operation ) { if( operation != "subtract" ) return false; ln a, b, c, d; cin >> a >> b >> c; d = a - b; CheckForError( d, c, "operator-( ln )" ); d = a; d -= b; CheckForError( d, c, "operator-=( ln )" ); #ifdef UNDER_CONSTRUCTION if( b.GetSize( ) == 1 ) { ddigit_t bb = b.GetDigit( 0 ); d = a - bb; CheckForError( d, c, "operator+( scalar )" ); d = a; d += bb; CheckForError( d, c, "operator+=( scalar )" ); } #endif return true; } static TestFunctionList RegFunc( ValidateSubtract );