#include #include #include "validate.h" #include "funcList.h" bool ValidateSqrt( const string& operation ) // // This doesn't really belong here. // // NTTL should have its own validation program. // { if( operation != "sqrt" ) return false; ln num, sqrt, s; cin >> num >> sqrt; s = Sqrt( num ); CheckForError( s, sqrt, "nttl sqrt" ); return true; } static TestFunctionList RegFunc( ValidateSqrt );