Write Your First C++ Program Right now...

Write Your First C++ Program Right now...

Be A Problem solver

·

2 min read

Hey You Landed At the Right Article.

Now Lets Us write Our First C++ program in 4 Easy Steps.

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

Don't Worry I will Explain it to You.

#include is the Header file, You can visualize it as a Tool box to use tool that will be used in the program.

iostream stands for input output stream.

using namespace std; ->It is Used to include standard namespace in the program like cout ,etc;

int main() Below this you write your code.

()-> any word ending with () is a Function

Than we write our code in {} these Brackets

cout is used to output anything

And As the function used is int we have to return any value so we wrote return 0;

WANT TO KNOW MORE ABOUT C++ READ THE BELOW QUESTION

FAQ.png

->What is C++?

C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes".

->What is C++ used For ?

In contrast to C, it supports object-oriented programming features like classes. Like C, it is used when a low-level programming language is necessary. While C++ is commonly used for graphics-heavy software such as games, photo and video editing apps, browsers, C is more widely used for embedded devices and OS kernels.

->Is C++ hard to learn?

C++ is known for being a more difficult language to learn than others such as Java and Python. This is in large part because C++ has a more complex syntax. This can be challenging for those starting with programming. The first benefit of starting with a new programming language like C++ is the syntax.

->Is C harder than C++?

Actually, both are difficult and both are easy. C++ is built upon C and thus supports all features of C and also, it has object-oriented programming features. When it comes to learning, size-wise C is smaller with few concepts to learn while C++ is vast. Hence we can say C is easier than C++.

ALL THE BEST AND ENJOY PROGRAMMING