Exercises
So that you can test your understanding of this material, here are some exercises.
1. | If the program in Figure 4.19 is run, what will be displayed?
Figure 4.19. Exercise 1 (code\morbas00.cpp)
| |
2. | If the program in Figure 4.20 is run, what will be displayed?
Figure 4.20. Exercise 2 (code\morbas01.cpp)
|
Get C++: A Dialog Programming with the C++ Standard Library now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.