#include #include "validate.h" #include "funcList.h" bool ValidateIncrement( const string& operation ) { if( operation != "op++" ) return false; ln a, b, c, d; cin >> a >> b >> c; c = a; d = ++c; CheckForError( c, b, "operator++; result" ); CheckForError( d, b, "operator++; assignment" ); c = a; d = c++; CheckForError( c, b, "operator++( int ); result" ); CheckForError( d, a, "operator++( int ); assignment" ); return true; } static TestFunctionList RegFunc( ValidateIncrement );