0% found this document useful (0 votes)
6 views

LESSON-2

The document provides an overview of the C++ programming language, including its history, importance, and comparison with other languages like Java and Python. It highlights C++'s development by Bjarne Stroustrup in 1979, its various international standards, and its applications in systems programming and scientific computing. Additionally, it discusses the C++ environment, including essential headers and libraries used in programming.

Uploaded by

jurisreyn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

LESSON-2

The document provides an overview of the C++ programming language, including its history, importance, and comparison with other languages like Java and Python. It highlights C++'s development by Bjarne Stroustrup in 1979, its various international standards, and its applications in systems programming and scientific computing. Additionally, it discusses the C++ environment, including essential headers and libraries used in programming.

Uploaded by

jurisreyn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Philippine Christian

University
C++ ENVIRONMENT
HISTORY & SAMPLE
Computer Fundamentals & Programming
LESSON 2/12

GPYA2024
Computer Fundamentals & Programming
C++ ENVIRONMENT
HISTORY & SAMPLE

TOPICS FOR THIS MEETING

1. Brief History of C++ Language


2. Importance of C++ Language
3. Comparison of C++ with other Languages
4. C++ Environment
5. Sample C++ Language Program
6. Activity

Philippine Christian
University
GPYA2024
Computer Fundamentals & Programming
C++ ENVIRONMENT
HISTORY & SAMPLE

BRIEF HISTORY OF C++ LANGUAGE


• C++ was developed by Bjarne Stroustrup while working on his Ph.D. thesis at
Bell Labs in 1979. He wanted to create a dynamic language that would allow
programmers to build complex systems with high-level abstractions while still
providing low-level access to the hardware.
• In 1983, the first version of C++ was released to the public. At this point, Rick
Mascitti also modified the language name from C with classes to C++. It is
interesting to note that the (++) in the name represents the associate operator/
increment operator, which was missing in C.
• In 1985, the first edition of 'The C++ Programming Language' was published, which
became the definitive guide to the language and helped to establish C++ as a
mainstream programming language. Since then, there have been several major
releases and standards of the language.
• In 1998, C++98, the first international standardized version of C++, was
released. It included additional libraries and various new features such as
templates, exceptions, and namespaces.
• Each one of these future versions of the language improved upon existing features.
There have also been several ISO standards for C++, including ISO/IEC 14882:1998
(C++98),
Philippine ISO/IEC 14882:2011 (C++11), ISO/IEC 14882:2014 (C++14), and ISO/IEC
Christian
14882:2017 (C++17), with the latest being ISO/IEC 14882:2020 (C++20).
University
GPYA2024

• These international standards have helped ensure the consistency and portability of
Computer Fundamentals & Programming
C++ ENVIRONMENT
HISTORY & SAMPLE

IMPORTANCE OF C++ LANGUAGE


• C++ is one of the most popular and important programming languages in
the world, with a wide range of applications in many different industries.

• It is widely used for systems programming, gaming, finance, scientific


computing, and robotics, among other areas. It’s especially useful in
building complex software systems, where performance, efficiency, and
reliability are crucial.

• One of its most valuable features is its ability to provide low-level access
to hardware resources. This makes it an ideal language for developing
system-level software, such as device drivers, operating systems, and
embedded systems.

• It’s also a highly popular choice for scientific computing and is used to
build high-performance numerical libraries and simulation tools.
Philippine Christian
University
GPYA2024
Computer Fundamentals & Programming
C++ ENVIRONMENT
HISTORY & SAMPLE

COMPARISON OF C++ WITH OTHER LANGUAGES


JAVA & C++
• C++ is a statically typed language which means that the data types of
variables are declared at compile time. In comparison, Java is a dynamically
typed language which means that the data types of variables are declared at
runtime.

• C++ is generally faster than Java but it’s less portable compared to Java.
Java also has a larger ecosystem of libraries and frameworks.

PYTHON & C++


• Python has a simpler syntax than C++, which makes it easier to understand
and use. C++ has a complex syntax and is considered one of the toughest
languages to learn.

• Also, C++ is statically typed, while Python is a dynamically typed language.

• Python is highly portable and can run on any platform that has a python
interpreter.
Philippine In comparison, C++ has to be compiled separately for each
Christian
platform.
University
GPYA2024
Computer Fundamentals & Programming
C++ ENVIRONMENT
HISTORY & SAMPLE

C++ ENVIRONMENT
THE ECOSYSTEM

Philippine Christian
University
GPYA2024
Computer Fundamentals & Programming
C++ ENVIRONMENT
HISTORY & SAMPLE
C++ ENVIRONMENT
THE HEADERS & LIBRARIES
#include <iostream>
• Standard Input-Output Stream – declares objects that control reading from and writing
to the standard streams.
#include <stdlib.h>
• The Standard Library Utilities – declares various utility functions for type conversions,
memory allocation, algorithms, and similar use cases. It also has multiple data types and
macros defined in the header.
#include <string>
• String Header File – used to declare strings and other variables.
#include <ctype.h>
• CType Header – declares a set of functions to classify (and transform) individual
characters. For example, isupper() checks whether a character is uppercase or not.
#include <cstring>
• CString Header – part of the standard C++ library collection that provides the commonly
used methods for C-Style string manipulation.
#include <unistd.h> – defines miscellaneous symbolic constants and types, and declares
miscellaneous functions.
#include <iomanip> – The manipulator returns an object that, when inserted into the stream
Philippine
str, behavesChristian
as a
University
GPYA2024
formatted output function
using namespace std; – used to automatically declare standard definitions and objects.
Computer Fundamentals & Programming
C++ ENVIRONMENT
HISTORY & SAMPLE
SAMPLE EXERCISE
OUTPUT # 1:

OUTPUT # 2:

Philippine Christian
University
GPYA2024
Computer Fundamentals & Programming
C++ ENVIRONMENT
HISTORY & SAMPLE
ACTIVITY
SAMPLE OUTPUT

Philippine Christian
University
GPYA2024

You might also like