Learn programming for free
Getting started with C++.
In this blog we will learn about fundamentals of C++.For example how to take input,how to print output etc.This is what every student who wants to learn c++ should definitely know.
In programming language we call it as header file,which includes all details required to carry out current program.Like in our case we are taking two input from user so this header file includes all functionalities required to take input from user.
2.using namespace std
Here this line is used so that we can use all standard things in c++.
For example if we don't use this line then for writing cin we have to write syntax as
std::cin>>
otherwise we write syntax as cin>>
3.int main()
This is a function don't worry we will learn it in depth here just remember it that it is simply a function.
I don't think this statement needs any explanation.This is a simple arithmetic operation.It will store sum of a and b into sum variable.
7. Finally it will print sum of two number as a result.
If you want to learn c language in depth then do visit : learn c language in depth.
0 Comment to "Getting started with C++."
Post a Comment
If you have any doubts then let me know.