Tagged: Best C++ Online Tutorial

Interested in learning C Programming? Click here...

introduction to Cpp 3

Introduction to C++ Programming

As the name suggest, C++ is a programming language based on C with some added features (represented by ++) which makes possible the creation of comparatively efficient programs. C++ programming inherits all the good features of C by filtering out some of the limitations of C. In addition, C++ programming also possesses some extremely new unique concepts which were not at all present in C. However, since C++ is based on C, it is extremely important to have a thorough knowledge of C. However, by chance you are not thorough with C Programming then you are strictly recommended to have...

Data Types in Cpp 3

Data Types in C++

Data types supported by C++ can be broadly divided into six heads as stated follows: int data-type char data-type float data-type double data-type bool (boolean) data-type enum (enumeration) data-type 1) int data-type: int data-type represents the whole number (i.e., integer) quantities. Integers are required not to contain a decimal point or an exponent. int data-type can also be further sub-divided into two broad categories, viz, short int and long int signed int and unsigned int short int and long int The qualifier short, when placed in front of the int declaration, tells the C++ system that the particular variable being declared...

Comment Statements in Cpp 0

Comment Statements in C++

Unlike C, C++ supports two types of comments. C programmers are familiar with the /*..*/ style of commenting. Anything lying within the /*..*/ pair is ignored by the compiler. C plus plus (C++) additionally supports the // notation of commenting. Here, everything following // till the end of line is treated as comment. Usually /*..*/ style is used for commenting out of a block code, whereas, // is used for single-line comments. Example of single-line comment:

Example of multiple-line comment: