Few things to know before starting c++


Hello guys... after a long time I came back with the newest post that is useful for you. so here we go.....


Difference between C and C++ languages:-


C LANGUAGE
C++ LANGUAGE
It supports procedure oriented programming language. It supports object oriented programming language.
It is top down approach of problem solving. It is bottom up approach of problem solving.
In C, input - output is done by scanf - printf keywords respectively. In C++, input – output is done by cin – cout keywords respectively.
Header file is stdio.h Header file is iostream.h


[(%d,%f,%c) format specifier ] should be used in printf,scanf function accroding to its use. In C++, data type specifier is not required.

Features of C++ :-

                                  C++ is a middle level language. That means it supports procedure programming language and also object oriented programming language. But what are these languages ? How can we understand? Let me tell you.

           These languages are one type of guidlines for programmers.
When it is difficult to impliment logic, difficult to understand programs, difficult for any query which is related to program for programmers, these guidlines are useful for solve difficulties and understand easily programs. Procedure programing is used in C language and object oriented programming are used in C++ language but C++ also supports both languages. 
 
Now we must understand Top down – Bottom up approach programming.

Top down approach:-

           In this approach, first we write main function and then we put the details whatever we wants from computer like we write a program in C language. In C language we use main() function first then we put the details. So in this approach we decide flow from main to details. We can understand that C language supports procedure oriented programing language, and prodcedure oriented programming language supports top down approach.

Bottom up approach:-

              It is opposite of top down approach. First we write details and decides the flow of program.like we write in C++ language. At this time we only know this concepts and I go in brief in upcoming post.



Object and Class:-

     Object is a multiple memory blocks which stores multiple values like functions, variables. We know what is variable. A variable is use to store a single value. But if we want to store multiple values then we use multiple variables. Object also stores multiple values like fuctions, variables. Class is a structure of an object. When we define class that means we define the object and when we create a class it means we are making new data type which is called as identifier. Class can be also used as data types in C++.

This is it. My next post will be coming soon.

Until then BYE BYE....!!!!


So that's all for this post and hope it is useful. If you liked it, share and subscribe our facebook page and Youtube channel for more update. You can follow us on Twitter and Instagram.







Comments

Post a Comment