Articles

Fundamentals of C++ that help Students

by Alan Jake I like to work
Basic Concepts of C++
In this section we will cover the basics of C++ help for students, it will include the syntax, variable, operators, loop types, pointers, references and information about other requirements of a C++ program. You will come across lot of terms that you have already studied in C language.

Syntax and Structure of C++ program
Here we will discuss one simple and basic C++ program to print "Hello this is C++" and its structure in parts with details and uses.

First C++ program

#include <iostream.h>
using namespace std;
int main()
{
cout << "Hello this is C++";
}

Header files are included at the beginning just like in C program. Here iostream is a header file which provides us with input & output streams. Header files contained predeclared function libraries, which can be used by users for their ease.

Using namespace std, tells the compiler to use standard namespace. Namespace collects identifiers used for class, object and variables. Namespace can be used by two ways in a program, either by the use of using statement at the beginning, like we did in above mentioned program or by using name of namespace as prefix before the identifier with scope resolution (::) operator.


Sponsor Ads


About Alan Jake Advanced   I like to work

36 connections, 5 recommendations, 324 honor points.
Joined APSense since, July 19th, 2018, From Redmond, United States.

Created on Sep 30th 2019 16:58. Viewed 269 times.

Comments

Jenny Ray Innovator  Best SEO Services India, SMO Company India, Digita
Nice Information shared by you. Thanks for sharing such a useful thing.
Oct 1st 2019 03:23   
Please sign in before you comment.