Download presentation
Presentation is loading. Please wait.
Published byDarrell Kennedy Modified over 9 years ago
1
© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 13: Programming in the Large Problem Solving & Program Design in C Sixth Edition By Jeri R. Hanly & Elliot B. Koffman
2
1-2 © 2010 Pearson Addison-Wesley. All rights reserved. 1-2 Figure 13.1 Preparing a Program for Execution
3
1-3 © 2010 Pearson Addison-Wesley. All rights reserved. 1-3 Figure 13.2 Header File planet.h for Personal Library with Data Type and Associated Functions
4
1-4 © 2010 Pearson Addison-Wesley. All rights reserved. 1-4 Figure 13.2 Header File planet.h for Personal Library with Data Type and Associated Functions
5
1-5 © 2010 Pearson Addison-Wesley. All rights reserved. 1-5 Figure 13.3 Portion of Program That Uses Functions from a Personal Library
6
1-6 © 2010 Pearson Addison-Wesley. All rights reserved. 1-6 Figure 13.4 Implementation File planet.c Containing Library with Planet Data Type and Operators
7
1-7 © 2010 Pearson Addison-Wesley. All rights reserved. 1-7 Figure 13.4 Implementation File planet.c Containing Library with Planet Data Type and Operators (cont’d)
8
1-8 © 2010 Pearson Addison-Wesley. All rights reserved. 1-8 Figure 13.5 Storage Classes auto and extern as Previously Seen
9
1-9 © 2010 Pearson Addison-Wesley. All rights reserved. 1-9 Figure 13.5 Storage Classes auto and extern as Previously Seen (cont’d)
10
1-10 © 2010 Pearson Addison-Wesley. All rights reserved. 1-10 Figure 13.6 Declaration of a Global Variable
11
1-11 © 2010 Pearson Addison-Wesley. All rights reserved. 1-11 Figure 13.7 Use of Variables of Storage Class extern
12
1-12 © 2010 Pearson Addison-Wesley. All rights reserved. 1-12 Figure 13.8 Function factorial with Premature Exit on Negative Data
13
1-13 © 2010 Pearson Addison-Wesley. All rights reserved. 1-13 Figure 13.9 Conditional Compilation of Tracing printf Calls
14
1-14 © 2010 Pearson Addison-Wesley. All rights reserved. 1-14 Figure 13.10 Conditional Compilation of Tracing printf Calls
15
1-15 © 2010 Pearson Addison-Wesley. All rights reserved. 1-15 Figure 13.11 Header File That Protects Itself from Effects of Duplicate Inclusion
16
1-16 © 2010 Pearson Addison-Wesley. All rights reserved. 1-16 Figure 13.11 Header File That Protects Itself from Effects of Duplicate Inclusion (cont’d)
17
1-17 © 2010 Pearson Addison-Wesley. All rights reserved. 1-17 Figure 13.11 Header File That Protects Itself from Effects of Duplicate Inclusion (cont’d)
18
1-18 © 2010 Pearson Addison-Wesley. All rights reserved. 1-18 Figure 13.12 File Backup Using Arguments to Function main
19
1-19 © 2010 Pearson Addison-Wesley. All rights reserved. 1-19 Figure 13.13 Program Using a Macro with Formal Parameters
20
1-20 © 2010 Pearson Addison-Wesley. All rights reserved. 1-20 Figure 13.14 Macro Expansion of Second Macro Call of Program in Fig. 13.13
21
1-21 © 2010 Pearson Addison-Wesley. All rights reserved. 1-21 Figure 13.15 Macro Calls Showing Importance of Parentheses in Macro Body
22
1-22 © 2010 Pearson Addison-Wesley. All rights reserved. 1-22 Figure 13.15 Macro Calls Showing Importance of Parentheses in Macro Body (cont’d)
23
1-23 © 2010 Pearson Addison-Wesley. All rights reserved. 1-23 Figure 13.16 Macro Expansions of Macro Calls from Fig. 13.15
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.