Float angleC = remainingAngle(-angleA, angleB);


#1

I just wanted to note as a heads-up that, in the challenge, when reading the book in the Kindle app on the iPad in landscape mode, there is a word-splitting hypen that actually appears to be a minus sign in the code (in bold below):

int main(int argc, const char * argv[])
{
float angleA = 30.0;
float angleB = 60.0;
float angleC = remainingAngle(-
angleA, angleB);

printf(“The third angle is %.2f\n”, angleC);
return 0;
}

For visual reference, here’s a screen shot of this occurrence from my iPad: http://i.imgur.com/6Eaqj.png

It threw me off at first, and I thought it was a little trick part of the challenge. Looking through the examples of others here who pasted the challenge code, I noticed theirs had no minus/hyphen, so I flipped the iPad to portrait and voila. I did a quick run through the errata (though this isn’t really an error) and other threads and didn’t see this mentioned, so my apologies if this has, indeed, been mentioned elsewhere.

Unrelated, I’m loving the book so far! Though it’s not far at this point, it’s farther than I’ve managed to get in the past 10 years of on-again, off-again attempts to get into programming. =)

-Stephen