Introduction To C++ Programming

Introduction To C++ Programming

This article gives you an introduction to C++ Programming from ground level.
This article will not teach you all of the fundas of C++ programming quite it provides
you the bottom to be taught C++ programming, do not forget that for additional learning, the
base ought to be strong and this is what this article tries to do. It will let
you know many fundas which will help you in additional learning of the the language.
C++ was developed in Nineteen Eighties in the Bell Laboratories by Bjarne Stroustrup as an
object oriented programming language. This language is considered by many as an
extension of the programming language C. The extension of programming language
C to create C++ is obtained by adding courses to C. This is why C++ was initially
called "C with Courses". The C++ programming language derives its
name from the increment operator used in C, which increments the value of a variable.
The symbolic name of C++ rightly signifies that this language is enhanced version
of C.

Features
of C++ Programming Language:-

C++ programming language is highly flexible, versatile and very highly effective programming language for creating any software specifically the system software namely operating system, compilers etc.
C++ is most ideally suited language for growth of reusable programs, which is essential to keep the production value minimum.
Comparability of C++ Programming Language
Allow us to see how C++ compares
with other programming languages. All of the programming languages may be divided
into categories:-

Problem oriented languages or High-level languages: These languages have been designed to offer a greater programming effectivity, i.e. sooner program development. Examples of languages falling in this class are FORTRAN, BASIC etc.
Machine oriented languages or Low-stage programming languages. These languages have been designed to offer a better machine effectivity, i.e. faster program execution. Examples of programming languages falling in this class are Assembly Language and Machine Language.
C++ stands in between these categories. That is why it's typically called
a Middle level language, because it was designed to have each: a comparatively good
programming effectivity (as compared to Machine oriented languages) and comparatively
good machine effectivity (as compared to Downside oriented languages).
Getting Began with C++ Programming

Speaking with
a pc includes speaking the language the pc understands, which immediately
rules out English as the language of communication with computer. Nonetheless, c++ interview questions (recent Mustmoveon blog post) there
is an in depth analogy between studying English language and learning C++ language.
The classical technique of studying English is to first be taught the alphabets or characters
used within the language, then learn to mix these alphabets to form sentences
and sentences are mixed to type paragraphs. Learning C++ programming is comparable
and much easier.

Therefore, instead of straight-away studying learn how to write programs, we should first
know what alphabets, numbers and special symbols are used in C++, then how utilizing
these, constants, variables and keywords are constructed, and finally how are
all these mixed to form an instruction. A gaggle of instruction can be mixed
in a while to form a program. Character SetCharacter set is a set
of valid characters that the language can recognize. A character represents any
letter, digit or any other sign. C++ has the next character set:

Letters A-Z, a-z

Digits zero-9

Particular Symbols area + - * / ' " ( )[ ] etc.

White Areas blank area, horizontal tab, carriage return, newline etc.

Other Characters, C++ can process any of the 256 ASCII characters as information or as
literals.

The alphabets, numbers and particular symbols when correctly combined form constants,
variables and keywords. Let us see what these are:-

Constants: Constants are knowledge objects that never change their worth during a program run. C++ programming language permits several sorts of constants.
Variables: Variables are quantities that may range during program execution. Variable names are names given to places in the memory of computer the place the value is stored.
Keywords: These are the words that convey a particular meaning to the language compiler. Keywords are the words whose which means has already been defined to the C++ compiler. The important thingwords cannot be used as variable names because if we accomplish that we are trying to assign a new meaning to the keyword, which is just not allowed by the computer. Examples of keywords are if, void, for, switch etc.
Data Types in C++
Data types are means to identify the types of
knowledge and the associated operations to handle it. In C++ data types are broadly
of two types:-

Elementary Data Types: These are predefined to the C++ language itself. there are at the very least five elementary knowledge types.
char- represents that the declared variable of this type can retailer characters
int- represents integers
float- represents floating level numbers
void- represents valueless knowledge
Derived Data Types: These are constructed from the basic types. I will not provde the particulars here because this is a bit high-level.
Directions in C++ Programming Language
Now that we seen the
different types of constants, variables and keywords the next logical step is
to find out how they are mixed to form instructions.

Type declaration instructions: to declare the type of variables used in the program. Eg:- int num; Here a variable num is declared of type int(eger).
Input /Output instructions: to carry out the perform supplying input data to a program and obtaining the output outcomes from it. Eg:- cin>>a; cout In the first line enter is taken from the keyboard by the perform cin and is assigned to a pre-declared variable a. In the second line 'Hello' is printed using the operate cout.
Arithmetic directions: to perform arithmetic operation between constants and variables. Eg:- c=a+b; Here c is assigned a price which is the sum of the variables a and b.
Management instructions: to control the sequence of execution of various statements in a C++ program. Eg:- if (a>b) func1(); Right here it is checked whether a is bigger than b, if it is, then program execution goes to a person defined operate 'func1'.

Donate

Contact Address

Shivshakti CHS, A-Wing, 1st Floor, Next to Sahakari Bhandar, S.K. Bole Road, Agar Bazar, Prabhadevi, Mumbai:400025
Tel: +91-22-24311614, 24311616.
FAX : +91-22-2431631,
MOB: +91-9870540453
Mail : This email address is being protected from spambots. You need JavaScript enabled to view it.

NGO | Foundation | Faith Health | Teen Care | Charitable Trust | Children Healthcare | Healthcare Senior Citizen | Teenagers | Seminars for Health Care.