标签:blog io 2014 log as file br return class
#include <stdio.h> #include <math.h> int main () { printf ("floor of 2.3 is %d\n", (int )floor (2.3) ); printf ("floor of 2.6 is %d\n", (int)floor (2.6) ); printf ("floor of -2.3 is %d\n", (int)floor (-2.3) ); printf ("floor of -2.6 is %d\n", (int )floor (-2.6) ); printf ("floor of 2.3 is %d\n", (int )ceil (2.3) ); printf ("floor of 2.6 is %d\n", (int )ceil (2.6) ); printf ("floor of -2.3 is %d\n", (int )ceil (-2.3) ); printf ("floor of -2.6 is %d\n", (int)ceil (-2.6) ); printf("%d",(int )-2.3); return 0; }
标签:blog io 2014 log as file br return class
原文地址:http://blog.csdn.net/u013076044/article/details/41662739