0

I'm not quite sure how to fix it. I have done the debugger on it, and it seems that it might have something to do with the cin.get() but im not sure.

```
void MyFloat::Read()
{
char ch;
int k = 0;
cin.get(ch);
while( ch == '0' || isspace(ch))
cin.get(ch);
if (ch != '.')
return;
cin.get(ch);
while( k != isalpha(ch) || k != MAX_DIGITS)
{
Number[k] = ch - '0';
k++;
cin.get(ch);
}
for(k; k<MAX_DIGITS; k++)
Number[k]=0;
NumberOfDigits = k;
cin.putback(ch);
}
```

i want the user to enter a number. it first goes through the zeros because it doesnt want to count them. then test for the decimal, and then finally, count the digits after the decimal, and at most there are 20 numbers in the array. let me know if this isn't enough and ill give you more information.