Page 233 - Computer_Science_F5
P. 233
Computer Science Overview of C++ (c) System programming: C++ is used for
financial applications, simulations,
C++ as a high-level programming
and scientific computing.
language was created as a C programming
language extension. It is compatible with
developing operating systems, device
object-oriented, procedural, and generic
FOR ONLINE READING ONLY
programming paradigms. Low-level
capabilities like pointers and manual drivers, and embedded systems.
memory management are provided by Introduction to C++
C++, allowing programmers to have programming language
exact control over system resources.
C++ programming language is a high-
Features level language extended from the C
(a) Object-Oriented Programming programming language. It contains
(OOP): C++ Support classes, objects, both imperative (procedural) and
inheritance, polymorphism, and object-oriented programming language
encapsulation. features. Examples of imperative
(b) Standard Template Library (STL): By features are records while that of object-
offering generic data structures and oriented programming features are
algorithms, the STL promotes code classes. C++ programming is a compile-
reuse and increases productivity. based language that uses different
(c) Performance: System programming, compilers to develop and maintain
game development, and applications programs. It is a case sensitive language
requiring high performance can like Python, Ruby, Java, Swift, and
benefit from well-known efficiency Verilog. This makes C++ differ from
and performance of C++. other programming languages such
(d) Platform independence: Although as Visual Basics, and SQL. The C++
C++ code can be compiled to operate programming language is also a platform
on a variety of platforms, platform- dependent, which means that the source
specific compilation and modification code written should be compiled in
are necessary.
every platform. This C++ characteristic
Applications does not apply to other languages like
(a) Game development: C++ is widely Java.
used for creating game engines,
graphics programming, and game Structure of C++ program
logic. Consider the following simple C++
(b) Performance-critical applications: program to display text “Introduction
C++ is preferred in domains where to C++ programming” as shown in
performance is critical, such as Program Example 4.1.
224
for Advanced Secondary Schools
Computer Science Form 5.indd 224 23/07/2024 12:33

