V
vamp4l
my program reads in data separated by whitespace, but i cant figure out
how to test for what kind of data it is.
for example the input is:
y = 16 ;
it takes each piece of data in as string type, and it needs to tell
what kind of data it is...so for when it reads in the value '16' how
can i get my program to determine that it is an integer or if the value
was 16.123 how could it recognize it as a float?
ive tried something like converting it using atoi or atof but that
doesnt seem to be the right method.
any help is appreciated
how to test for what kind of data it is.
for example the input is:
y = 16 ;
it takes each piece of data in as string type, and it needs to tell
what kind of data it is...so for when it reads in the value '16' how
can i get my program to determine that it is an integer or if the value
was 16.123 how could it recognize it as a float?
ive tried something like converting it using atoi or atof but that
doesnt seem to be the right method.
any help is appreciated