Chr$ Function ;Returns a String containing the character associated with the specified character code.what is char s[]
int HexToDec(const char* strHex)
{
int nFactor = 1;
int nRetVal = 0;
for(char* p = strHex + strlen(strHex); p >= strHex; --p)
{
if(p[0] < 'A') nRetVal += nFactor * (p[0] - '0');
elseif(p[0] < 'a') nRetVal += nFactor * (p[0] - 'A' + 10);
else nRetVal += nFactor * (p[0] - 'a' + 10);
nFactor *= 16;
}
return nRetVal;
}
by Duane Benson
by Aaron Carman
by Aaron Carman