3.14 Libraries

8 阅读1分钟

1. Exam Points

  • Choose an existing procedure (reuse it) to solve a new problem.

2. Knowledge Points

(1) Libraries

  • A software library(库) contains procedures that may be used in creating new programs.
    • function library
    • class library
  • Libraries improve code reusability.
  • Existing code segments can come from internal or external sources, such as libraries or previously written code.
  • The use of libraries simplifies the task of creating complex programs.
  • Application program interfaces (API-应用程序编程接口) are specifications(规范) for how the procedures in a library behave and can be used.
  • Documentation for an API/library is necessary in understanding the behaviors provided by the API/library and how to use them.

3. Exercises