Hi,
I'm really new programming in C++ and I need your help.
I have to make a program which has to read from a .dat file a column of 9999 values (like 6548.098976) and from this file find the maximun, minimun and later on make an histogram with 90 intervals.
I have some problems because it read the data but it doesn't find the maximun and minimun, it write 57 for both.
On the other hand, I don't have any idea of how to draw an histogram. It should be something like this: http://maps4twan.blogspot.com.es/2010/11/histogram.html
1. Line 9: you're dereferencing an uninitialzed pointer. This could crash your program depending on the pointer variables value.
2. Line 25: you're comparing against the value received from the illegal dereferencing at line 9.
3. What kind of data does your input fike contain? May be you read in ASCII coded numbers? The decimal value 57 represents ASCII '9'