Introduction to Programming with C++

by Jin He

As part of OER project funded by Fresno City College OER Award Program, this book was created based on CSCI 40 course curriculum at Fresno City College, which was aligned to CID course descriptions of Comp 112 and Comp 122. The book can be used for the first semester of computer programming courses. It uses C++ as a vehicle to convey the basis concepts in computer programming. It focuses on programming logic, structure, and methodology. It covers the programming fundamentals such as variables an

Description from LibreTexts.

Publisher
Fresno City College
Subjects
Engineering
Licence
CC BY-NC-SA 4.0, as LibreTexts states it. Non-commercial use only.
Who can read
Tweens profiles and older, judged from its title and subjects

Contents

LibreTexts writes equations in TeX, and here they show as TeX; the PDF has them typeset.

  1. Front Matter
  2. TitlePage
  3. InfoPage
  4. Table of Contents
  5. Licensing
  6. 1: Chapter 1 Introduction to Computer Programming
  7. 1.1: Introduction to Computer Science
  8. 1.2: What Is a Computer? and What Is a Computer Program?
  9. 1.3: Compilers and the Apps We Need for Learning C++ Programming
  10. 1.4: Download and Install App for C++ Programming (PC Users)
  11. 1.5: Download and Install App for C++ Programming (Mac Users)
  12. 1.6: Save a Copy of Source File
  13. 1.7: Understanding the Code of the First C++ Program
  14. 1.8: Case Study- Using setw() to Format the Output
  15. 2: Chapter 2 Elementary Programming
  16. 2.1: Constants and Variables
  17. 2.2: Console Input and Output
  18. 2.3: Assignment Statements
  19. 2.4: Case Study- Sum of Numbers
  20. 2.5: Numerical Operators
  21. 2.6: Coding a Mathematical Formula
  22. 2.7: C++ Examples
  23. 2.8: Case Study- Find the Sum of Numbers
  24. 3: Chapter 3 Selection Statements
  25. 3.1: Relational Operators and Relational Statements
  26. 3.2: Selection Statement- if-statement
  27. 3.3: Case Study- Find the Largest Number
  28. 3.4: Case Study- Sorting Numbers
  29. 3.5: Selection Statement- if-else Statement
  30. 3.6: Radom Number and Logical Operators
  31. 3.7: Conditional Expression
  32. 3.8: Case Study- Practice Multiplication
  33. 3.9: Switch Statements and Menu Driven Programs
  34. 4: Chapter 4 Characters and Strings
  35. 4.1: Character Data Type and ACII Code
  36. 4.2: String Data Type
  37. 5: Chapter 5 Looping Statements
  38. 5.1: The Structure and The Logic of a while Loop Statement
  39. 5.2: Case Study- Find The Largest Number
  40. 5.3: Case Study- Find The Sum
  41. 5.4: Sentinel Control Loop and do-while Loop Statement
  42. 5.5: for Loop Statement
  43. 5.6: Nested Loop Statements
  44. 5.7: Case Study- Display a Rectangle
  45. 6: Chapter 6 C++ Functions
  46. 6.1: Introduction to C++ Functions
  47. 6.2: More Examples and Further Discussion about Functions
  48. 6.3: Global, Local, and Static Variable
  49. 6.4: Passing by Value vs Passing by Reference
  50. 6.5: Function Overloading
  51. 7: Chapter 7 Arrays
  52. 7.1: Introduction to Arrays
  53. 7.2: Working with the Data Stored in Arrays
  54. 7.3: Case Study- Sorting Data Stored in an Array
  55. 7.4: User-Defined functions with an Array as its Input
  56. 7.5: C-String and String Variables
  57. 8: Introduction to Object Oriented Programming
  58. 8.1: Introduction to Object Oriented Programming (PC Users)
  59. 8.2: Introduction to Object Oriented Programming (Mac Users)
  60. 8.3: Class Contructors
  61. 8.4: Case Study- C++ Class- StudentRecord
  62. 8.5: Case Study- C++ Class- Bag
  63. 9: Pointers
  64. 9.1: What is a Pointer?
  65. 9.2: Pointer and Dynamic Memory Allocation
  66. 9.3: Case Study- Array Copy
  67. 10: Recursive Functions
  68. 10.1: Understand Recursive Functions
  69. 10.2: Recursive Functions v.s. Loop Statements
  70. 10.3: Using Array as Input of a Recursive Function
  71. Back Matter
  72. Index
  73. Glossary
  74. Detailed Licensing