C++ basics, C++ Programming, C++ learning

Hi, My name is Bilal Ahmad. And today I will tell you how you can write a code in C++ on a basic level. And I will also tell you some software where you can write the c++ code easily. And I will also give you some important information bout the C++ language.

Some Basic information about C++.

  1. C++ language is a case sensitive Language.
  2. It is a general-purpose language.
  3. By understanding the syntax of C++ it is easy to learn the other Languages.
Some common software for coding the C++ language.
  1. Visual Studio
  2. Dev C++
  3. Subline Text
  4. Visual Code
  5. Subline Text
  6. And Many more
Now I will tell how you can write the code in C++ language. C++ is a case sensitive language so make sure you write the code so that you can not face the syntax error.

Code in C++:

#include<iostream>
using namespace std;
int main()
{
    cout<<"hello World"<<endl:
}
return 0;

Explanation of the code

We use the #include<iostream>  this command is used in the compiler so can get something from the user and return to the user.
namespace std is used to declare variables,functions,etc.
int main()  is actually a function.
return 0     is giving something back to the user.

So I hope you can easily understand some basic information about the C++ language.
So I hope to see you soon int he next post.

Best Regards 

Bilal Ahmad




4 comments:

Powered by Blogger.