C++_ Concept Question

1. What are the components of a C++ program? What does each part of it do?
Answer: (1) Preprocessing: a bunch of header files #include, custom #define, compile switch #pragma
(2) Global declaration: declarations of classes, structures, global variables, etc.
(3) Function body: main program and called function

2. Please describe the characteristics of C++ according to your understanding. What is the development of C++ to C?
Features:
C++ is designed as a statically typed, multi-purpose programming language that is as efficient and portable as C.
C++ Design Direct and extensive support for multiple programming styles
C++ design does not require a complex programming environment.
The C++ language is flexible, the data structure of operators is rich, it has structured control statements, the program execution efficiency is high, and it has the advantages of high-level language and assembly language at the same time
. is an object-oriented approach.
Development:
The most meaningful aspect of the C++ language is its support for object-oriented features. Although the compatibility with C makes C++ have dual characteristics, it is completely different from C in concept and more object-oriented.
For the sake of keeping the language concise and running efficiently, many features of C++ are provided in the form of libraries (such as STL) or other forms, rather than being directly added to the language itself.
C++ introduces the concept of object-oriented, which makes it easier and faster to develop applications of human-computer interaction type. Many excellent programming frameworks including Boost, Qt, MFC, OWL, wxWidgets, and WTL use C++.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325369465&siteId=291194637