void inputGrid(string inputI, unsigned __int64 &i,int t)
{
do
{
t=1;
getline(cin,inputI);
i=atol(inputI.c_str());
if(i<=1)
{
cout<<"Please key in only the number that suitable for the grid."<<endl;
t=0;
}
}
while(!t);
}
//this is the function i used to solve the problem when i key in char //to an integer...but it fails to function when i set the "if(i<=-1)
//it will still proceed if press enter and not even key in any value
//i want to set the range inside 0 and a size that define by user...