C++ for Python Programmers¶
By Jan Pearce, Berea College, and Brad Miller, Runestone
- 1. Introduction to C++ for Python Programmers
- 2. Atomic C++ Data Types
- 3. Control Structures
- 4. Functions
- 5. Collection Data Types
- 6. Input and Output
- 6.1. File Handling
- 6.2. Member Functions and Precision
- 6.3. File Operations
- 6.4. Dealing with I/O Failures
- 6.5. Reading and Writing with File Streams
- 6.6. The End-Of-File (EOF) for Systems that Implement eof()
- 6.7. Passing Streams as Parameters
- 6.8. File Names and C-Strings
- 6.9. Putting it all Together
- 6.10. Summary
- 6.11. Check Yourself
- 6.12. Glossary
- 7. Exception Handling
Acknowledgements¶
Many thanks to Runestone for creating a very strong framework for open source computing books. Many thanks also to Berea College’s labor program for making it possible for students to contribute.
Indices and tables¶
C++ for Python Programmers by Janice L. Pearce and Bradley N. Miller is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.