See Figs.1.2-1.3.
- Default: structures passed by value
- Pass structure by reference; Avoid overhead of copying structure
- C-style structures
- No interface; If implementation changes, all programs using that struct must change accordingly
- Cannot print as unit; Must print/format member by member
- Cannot compare in entirety; Must compare member by member
.
.
Figure 1.2:
Creating a structure, setting its members and printing the structure (part 1 of 2).
|
Figure 1.3:
Creating a structure, setting its members and printing the structure (part 2 of 2).
|
2004-12-28