Mac what's wrong?! (c++)

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
 

Similar threads

Register on MacRumors! This sidebar will go away, and you'll see fewer ads.