For my homework, I have to read the double values ββfrom the file and sort them. These are some of the meanings. But when you read them with my code, when they print them out for testing, they are written in integer form.
std::ifstream infile (in_File);
double a;
while(infile>>a)
{
std::cout<<a<<std::endl;
}
My doubles start with 185261.886524, then237358.956723
And my code will print 185262, then 237359and so on.
source
share