Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chris200x9

macrumors 6502a
Original poster
Jun 3, 2006
906
0
whats wrong with this function

Code:
double CalculateShippingCharges( int pounds, int ounces )
{

while (ounces >= 16)
{
pounds++;

ounces - 16;
}
	cout << pounds;
	cout << ounces;
	
	return 0;
}


when I invoke it in main and run it instead of having any output it just says program exited normally
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.