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
- 6.13. Matching
- 7. Exception Handling
- 8. Graphics in C++
Reporting Typos or Other Problems¶
Thank you for your help in improving this text. If you find a typo or other problem, you can visit the Github issue tracker giving as much information as needed to understand the problem. If you include the URL of the page where the problem occurred, this is especially helpful. Alternatively, you can contact the author Jan Pearce via email.
Acknowledgements¶
https://www.berea.edu/csc/faculty-and-staff/dr-jan-pearce/ 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 undergraduate students to receive funding to contribute.
Some sections of this book were originally written by Dr. Brad Miller as Java for Python Programmers. These were translated to the C++ language by Dr. Jan Pearce and a team of excellent students from Berea College. Other sections were originally written as course web pages by Dr. Jan Pearce.
We would like to extend a special note of gratitude to Jesse Walker-Schadler who had the vision to create the CTurtle library which makes graphing in C++ particularly easy for Python programmers because it used the Python Turtle library syntax, and for his excellent work in porting it to Runestone.
Index and Search¶
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.