Skip to main content

Posts

Showing posts from August 16, 2020

Creating and executing c++ program.

In this slide we will discuss the following things. Creating an C++ file. Writing a Program and learning every aspect of its execution like. compilation, assembling and linking of library functions. Creating C++ File You should skip to " Your First Code ", if you know how to do this .😉 C++ program is nothing but a file with extension ".cpp". Creating a C++ file is not difficult. You can create it in anyway you like, I gave a simple way for creating. (Note - If you have not installed c++ compiler in your computer. Then, to run the c++ files, you must install  the compiler first or you can use some online c++ compiler like onlinegdb ) Your First Code Now, start typing the following code in your ".cpp" that you created. (This is also called as source code and you can consider it as the basic template for your c++ program, but I will progressively introduce more things that you can add to your c++ program). 1 2 3 4 5 6 #include<iostream> int main ()

Algorithms, Pseduocodes and FlowCharts.

Some Basic Knowledge. C++ is a general purpose programming language, created by Bjarne Stroustrup and was firstly released in  1985. It is an extension to C language, Reason for that is if you are familiar with C language than you must be familiar with the fact that there are no classes, templates etc. present in C language. Due to which when classes are added to C language it is named as "C with Classes", but C++ is considered as default name now.  Extra thing to remember - In "C++" the symbol "++" after C is post increment symbol and therefore, "C++" means that In C additional features are added. Now, let's define, what are algorithms? Algorithms are nothing but set of rules that must be followed to accomplish some task. (Now, What that mean?😕) let's take an example of swapping two numbers, i.e. if a = 10 and b = 20 after swapping a = 20 and b = 10. How will you write the procedure for this?  (There are many such algorithms). Accordin