|
From: Robert D B. <lon...@ju...> - 2001-02-25 14:17:20
|
HI.. When I compile and try to debug the following program I can not get
the debugger to show the value of f.
The watch window tell me that there is no symbol "f" in the current
content and there is no line number for
f=2653.1456;
same with the symbol "i"
Anybody got any clue???
Thanks lonestar36
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
int main(int argc, char *argv[])
{
float f;
char string[34], ch;
int i;
f = 2653.1456;
itoa((long)f,string,10);
i = strlen(string);
printf("Decimal point is %d places", i);
i = i*10;
f = f/i;
return 0;
}
|