12345678910111213141516 |
- /**
- * Validates that input contains the only integer between 1 and 100, inclusive.
- * Also validates that file ends with EOLN and EOF.
- */
- #include "testlib.h"
- using namespace std;
- int main(int argc, char *argv[]) {
- registerValidation(argc, argv);
- inf.readInt(1, 100, "n");
- inf.readEoln();
- inf.readEof();
- }
|