chapter 5 Ex5_01 question
In Chapter five the 'Try it out' example. When I entered the code for the example and ran it, it produced the same results as in the book on page 237 but it also gave me two warnings on the line 'x = power(x, power(2.0, 2.0));
When I changed it to 'x = power(x, power(2.0, 2)) it compiled without warnings.
Could it have been a mistake in the book?
The warning was C4244 : 'argument' conversion from 'double' to 'int' possible loss of data
Last edited by earlmw; January 29th, 2010 at 04:24 PM.
Reason: entering warning message