答案:#include <math.h> float x = 10.76; int a = (int)floor(x);
上一个:c程序员面试!小弟最初学c++,后来喜欢上c,也主要学它。借了本《c/c++程序员面试宝典》,里边有下一个:C语言问题求指教