21xrx.com
2024-11-22 03:34:24 Friday
登录
文章检索 我的文章 写文章
C++ Related English Vocabulary & Expressions
2023-06-22 10:21:12 深夜i     --     --
Programming languages Object-oriented programming Syntax and semantics Data structures Control struc

As one of the most popular programming languages in the world, C++ has its own set of unique terminology and expressions. Here are some C++ related English vocabulary and expressions that every programmer should be familiar with.

1. Compiler: A compiler is a program that translates source code written in a high-level programming language into machine code that can be executed by a computer.

2. Object-oriented programming (OOP): OOP is a programming paradigm that focuses on creating and manipulating objects, which are instances of classes.

3. Class: A class is a template for creating objects, which define the properties and methods of the object.

4. Inheritance: Inheritance is a way of creating a new class from an existing class. The new class inherits all aspects of the base class, but can also add new properties and methods.

5. Polymorphism: Polymorphism is the ability of objects of different classes to be treated as if they were of the same class.

6. Virtual function: A virtual function is a member function that is declared in a base class and is redefined in a derived class.

7. Template: A template is a tool used to create generic classes or functions.

8. Exception: An exception is an error that occurs during the execution of a program. C++ provides a built-in exception handling mechanism to catch and handle such errors.

9. Linker: A linker is a program that connects object files and libraries to create an executable program.

10. Standard Template Library (STL): The STL is a collection of generic algorithms, data structures, and iterators provided by the C++ Standard Library.

11. Iterator: An iterator is a tool used to traverse and manipulate the elements of a container.

12. Namespace: A namespace is a way of grouping related classes, functions, and variables into a single namespace to avoid naming conflicts.

13. Preprocessor: A preprocessor is a program that performs operations on source code before it is compiled, such as macro expansion and file inclusion.

14. Header file: A header file is a file that declares functions, classes, and other program elements that are used in other parts of the program.

15. Template specialization: Template specialization is a way of providing a specific implementation of a template for a particular data type.

In conclusion, understanding these C++ related English vocabulary and expressions is essential for every C++ programmer. By mastering these terms, one can better understand and write more efficient and effective C++ code.

  
  

评论区

{{item['qq_nickname']}}
()
回复
回复