The function to separate an integer from a non-integer is simple
void Inteiro(float n)
{
int x = n;
float y = n;
if (x==y)
{
cout << "E inteiro" << endl;
}
else
{
cout << "Nao e inteiro" << endl;
}
}
I just wanted you to do something like this:
Data entry example NOTE: Data is in a txt
0,9
36646
0,4
38833
33882
38849
0,7
36646
I doubt the main thing, what algorithm I need in this question {Accurate logic to be implemented in integer function that reads mode 0.9 is note corresponding to the number of low that in case 36646 an integer, then comes 0.4 that say new broken number where it corresponds the numbers 38833.33882.38849 and 0.7 again corresponds to the number 36646 only that 0.7 must be added with 0.9 because both are of the same number
and when you print, it will show the number with its corresponding note
as
36646 1,6 //com a nota somada
....
..
.
.