There’s more than one way to do it

7 Jun
Finally, I managed to compile a gtk + cairo GUI program by using mingw GNU make and eclipse CDT under Windows XP.
22 Nov
I have tried to run this with both eclipse(CDT)+MinGW and Cygwin+GCC
1 2 3 4 5 6 7 8 9 10 | #include <stdio.h> #include <stdlib.h> #include <float.h> int main() { puts("The range of "); printf("\tlong double is [%Le, %Le]∪[%Le, %Le]\n", -LDBL_MAX, -LDBL_MIN, LDBL_MIN, LDBL_MAX); return EXIT_SUCCESS; } |
but got different results:
This is weird, and I googled it, then just found this http://www.thescripts.com/forum/thread498535.html
The LDBL_MAX of long double is machine-dependent, but why it like this in same machine? I guess it’s the problem with MinGW. Anyone hv any idea?
Recent Comments