Sams Teach Yourself C in 21 Days

(singke) #1
384 Week 2

This program uses what you learned in your first two weeks of teaching yourself C. As
you can see, many of the concepts from the second week make your C programs more
functional and coding in C easier. Week 3 continues to build on these concepts.

You can replace lines 229 and 230 with fflush(stdin); and not change the
program. You can’t, however, replace all of the fflush() calls with clear_kb().
If you can’t see why, you should review Day 14.

Note


23 448201x-W2R 8/13/02 11:12 AM Page 384

Free download pdf