// Test if a number is numeric with out any inbuilt functions
// Date 17:39 11/10/2016
// By Ben a.k.a DreamVB

#include <iostream>
#include <iomanip>

using namespace std;
using std::cout;
using std::endl;
using std::cin;

bool IsNumeric(char *src){
	int x = 0;
	int isNum = true;

	while (src[x] !='\0'){
		if ((src[x] >'9') || (src[x] < '0')){
			isNum = false;
			break;
		}
		x++;
	}

	return isNum;
}

int main(int argc, char *argv[]){

	cout << "Is number 1024  " << IsNumeric("1024") << endl;
	cout << "Is number HW16  " << IsNumeric("HW16") << endl;

	system("pause");
	return 0;
}