0% found this document useful (0 votes)
33 views2 pages

C and C++ Programming Sis. Proj 10

The document discusses the history and development of the C++ programming language. It was created by Bjarne Stroustrup as an enhancement to the C programming language by adding object-oriented programming features. The document also covers basic concepts needed to construct C++ programs such as comments, identifiers, and data types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

C and C++ Programming Sis. Proj 10

The document discusses the history and development of the C++ programming language. It was created by Bjarne Stroustrup as an enhancement to the C programming language by adding object-oriented programming features. The document also covers basic concepts needed to construct C++ programs such as comments, identifiers, and data types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BRIEF HISTORY

BRIEF HISTORY C++ language is based on C language. It was


In the 1970s, Dennis developed by Bjarne Stroustrup. who studied in
Ritchie of Bell the doctoral program at the computing
laboratory of Cambridge University. Stroustrup
Laboratories was designed C++ to make programming easier and
developing a new more convenient for programmers.
operating system. He
realized that he needed
a programming
language that was
concise and that
produced compact and BRIEF HISTORY
speedy programs to
make his work faster. Bjarne Stroustup wanted to add features in
the subset of C++ that support object-
Because of this, Ritchie
oriented programming concepts. He
developed a succeeded in his goal which is nowadays
programming language called the C++ language with object-
called C. oriented approach.

TO CREATE A SIMPLE PROGRAM USING C++ PROGRAMMING LANGUAGE, YOU


NEED TO KNOW THE FUNDAMENTAL CONCEPTS THAT ARE NECESSARY TO
CONSTRUCT USEFUL PROGRAMS.

BJARNE STROUSTRUP DENNIS RITCHIE

THE DIFFERENCE BETWEEN C & CTT PROGRAMMING:


C++ is an object-
oriented programming
language that has
become the prevalent C++ is a separate language
object-oriented from C and is almost a proper
programming language superset of C.
today. In 1998, it became
the standard
programming language
worldwide when it was
certified by ANSI/ISO
(International
Standardization
Organization). The first Thus C++ is a "relative" of C,
C++ compiler known as meaning that any valid C
Cfront was written by program is also a valid C++
the developer at AT&T. It
program.
is very closely related
with the C language.

@JAANT'JEYETSYE
C & C++
PROGRAMMING

BASIC STRUCTURE
OF PROGRAMMING

y=x+2
Types of Comments:

A. Double-slash (//) comment tells the compiler to ignore everything that follows the
double slash until the end of the line.

B. Slash-star (/*) comment mark tells the compiler to ignore everything that follows
until it finds a star-slash (*/) comment mark. This mark will be referred to as C-style
comment. Every /* must be matched with a closing */.

An identifier is the name of C++ entity such as variables and functions. There are rules in writing
identifiers:
An identifier must begin with a letter of the alphabet (a to z or A to Z), or the underscore
character ( _ ).
The first character of the identifier may be followed by any letter of the alphabet, any digit (0
to 9), or underscore character ( _ ).
The identifier has no limit on the number of characters it may have.
C++ is case-sensitive. The identifiers Total, total, and TOTAL are all different.
If an identifier consists of two or more words, we may do any of the following:
a. Use underscore to separate the words.
b. Capitalize the first character of each word except the first.

ASCII - BINARY
CHARACTER TABLE

You might also like