Professional Documents
Culture Documents
C and C++ Programming Sis. Proj 10
C and C++ Programming Sis. Proj 10
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