Departments
|
C for Dummies, 2nd EditionPage 51 COLOR is a Win2000 command. As such, that command runs before your COLOR.EXE program does. To solve this, run your COLOR program from the command prompt in this manner: .\color Just as in Unix, if you specify the program file's location, it runs from that location. In this case, .\ specifies the current directly, so that your COLOR command runs instead of the Windows COLOR command. Page 59 In the first paragraph, Page 96 The last word in the first paragraph on the page should be number not letter. Try not to use a number as the first letter of a variable name. Page 112 More formatting woe. The range for a singed long int is from -2,147,483,648 to 2,149,483,647; the range for an unsigned long int is from 0 to 4,294,967,295. Page 119 The last example on the page is wrong. I was drunk. The wildcard 123456.000000 The value 1234.5678 would print like this: 1234.567749 (Those are imprecise values to the right of the decimal, but there are six of them.) To just print out six digits to the left of the decimal, use Page 122 In the sidebar, a reference is made to looking up a value in Appendix B. Sadly, Appendix B does not list the character referenced. Page 126 Third paragraph, var would be an integer variable, not a char. In the source code, the variable key should be defined as an int, not a char. Page 234 The sleep() function requires the header file Page 262 Second to last paragraph, it should be the atoi() function, not atio(). Page 302 The defined variable Page 309 In the 8th paragraph, the Pages 314-316 Typesetting errors make the math on this page read goofy. Starting with the third from last paragraph on page 314: 4 × 4 is 42, not 42 4 × 4 × 4 is 43, not 43 In the first paragraph atop page 315, the value is 45 not 45. And in the fifth paragraph, it should read 42 not 42. In the last paragraph on page 315, the value should be 28, not 28. On page 316, the first paragraph about the check marks, the value 28 should be 28. Finally, the last bullet on page 316 should show 28 as the value for 2^8. Page 334 The code sample at the top of the page should read: m = big % 5; Page 366 The directory name for Dev-C++ is listed incorrectly. It should be C:\Dev-C++ not C:\Dev=C++.
Copyright © 1997-2010 by QPBC. |