line 51: That is an ILLEGAL way to declare an array. You must specify its size.
lines 57 and 58: What happens if OnRelease() returns -1, as it will in line 46? Answer: crash your program.
Where (line number please) do you want to use atol() ? If you are getting the letters from the keyboard one character at a time than atol() may not be necessary.
int key = 0;
char k;
// convert letters to format an integer.
while( (k = getKeybord()) > 0)
{
key = (key * 10) + k - '0';
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343