Basics of C++


Learn a C++ programming language

In this session, we will cover the basics of  C++, the syntax, variable, operators, loop types, pointers, references and information about other requirements of a C++ program. And I will also suggest some software where you can practice from yourself.
So let’s begin…..




History= The C++ programming language was developed by Bjarne Stroustrup in 1979 which is one of the best programming languages for the programmers. With the C++ most of the success software’s are developed.

Procedure Oriented Programming = A procedure oriented programming language is one in which procedure i.e. method or function are given more significance. Here, one function calls another function.

                                                      OR

Procedure oriented programming is a set of function reading, writing and printing can be written in a program with the help of different functions for the different tasks.

Advantage of Procedure oriented programming =

1  .    In the procedure-oriented programming, there can be global variable and local variables to each function.
2  .    In this type of programming language, the tasks are divided into a smaller part that is called function or method. And any function can call any instant.
3  .    As we learned in the 1 point there are local and global variables so the global variables can be accessed by all the function but the local variables only can be accessed by the corresponding function.
4  .    Procedure-Oriented programming follows the top-bottom approach.
5  .    C programming language is an example of the procedure-oriented programming language.
6  .    C++ also follows the procedure-oriented programming. And we know C++ is an Object-oriented programming language.

Object-Oriented Programming = “Object-oriented programming is referred to a type of computer programming which is not only define the data type of a data structure but also define the operation that is applied in the data structure.

Advantage of Object-oriented programming =

1  .    Object-oriented programming as the name says gives more significance to the object which has data and functions build around it.
2  .    The data of the object can be access the data of another object through the functions of that object.
3  .    Object-oriented programming uses a bottom-up approach wherein the smaller part tasks are first dealt in details and gradually creating the entire huge system.
4  .    Object-oriented programming is more secure.
5  .    Data hide features are present in the C++ so this is more secure than procedure oriented programming language.
6  .    C++, Java, Python is the example of the object-oriented programming language.

Benefits and Applications of OOPs =

The object-oriented programming finds lots of application in the real business systems. The various places where object-oriented programming is required are :

1  .    Database management system
2  .    Intelligent systems
3  .    Pattern Recognition
4  .    Image processing
5  .    Parallel computing
6  .    Mobile computing
7  .    Distributed computing
8  .    Data security

Variable = In the programming language programmers need some memory to store the data so it stores the data in the program.

Data type= It tells about which type of data/value you want to store in the variable.

Types of data type = In all the programming language having the data type by using the data type we assign the values in the variables mainly we use 4 types of data type that are listed below...


  1. int (int full form is an integer that can only be store the integer numbers i.e 1,2,3,4,5,6 etc)
  2. float (float is an anothor data type that can be store the decimal number i.e 2.1,2.7,9.5 etc )
  3. char (char is stands for characters that can store only one character in the variables i.e 'a','b','56' etc)
  4. string (string as the name says that is can be used for the strings such as our names etc)



  

No comments:

Post a Comment