|
Re: C++ Program to Determine Cost Per Student for Regional
I think it's because boys and girls are integers and it is doing integer division. It already drops the decimal before ceil can round it up. Either declare boys and girls as floats or convert them within the ceil function.
__________________
Kevin Li
596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
Last edited by kevin.li.rit : 10-01-2009 at 20:26.
Reason: spelling.
|