This book was one of the recommended reading. Is anyone else using it?
As I read the chapters I am typing the example programs into the edit appliance, compiling and then running them. Working on Chapter 9 Example 2 (page 76) I ran into two problems. The following lines are exactly what is shown in the book.
scanf(" $%f", &tirePrice);
printf("%You spent $%.2f on your tires\n\n\n", netSales);
The dollar sign ($) in the scanf line and the first percent sign (%) in the printf line each caused an error. When I removed them from their respective lines, the program compiled and run just fine. I wan't sure if this was a problem due to the fact that I am using the appliance and the book authors use Code Blocks or if it's simply a typo in the book. Thoughts?