C++ is one of the most widely used languages in the world. It is a fast and fluild object oriented successor of the C language which has its ground even after 40 years. Learning C and C++ is one of the major steps in walking through the road of programming. As its a tradition to write the first program in any language as the "HELLO WORLD" program, we'll do exactly that today.
Test Code : ( Use this code to display Hello World! in the console )
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
cout << "I am getting the program to work just fine" << endl;
return 0;
}
Test Code : ( Use this code to display Hello World! in the console )
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
cout << "I am getting the program to work just fine" << endl;
return 0;
}
NOTE: Don't worry about anything else you see on the screen just focus on the code and rest will be discussed later in the tutorials.
Save the file as "helloworld.cpp", the .cpp extension defines that its a C++ file and you'll be good to go.
Watch the video below for more.
Comments
Post a Comment