#include <iostream> #include <string.h> #include <stack> using namespace std; int validateInt (const char * src) { if (src == NULL) return 0; const char * p = src; while (*p>='0' && *p<='9') p++; return (*p=='