兩個整數相除得float

int a,b;float float f;計算機   f = (float)a / (float)b;   不能用   f = (float)(a/b)   由於a和b都是整數,計算機沒法將其帶上小數點
相關文章
相關標籤/搜索