Exforsys

H I D E

 

C++ Tutorials

Created by Bjarne Stroustrup of AT&T Bell Labs as an extension of C, C++ is an object-oriented computer language used in the development of enterprise and commercial applications. Microsoft’s Visual C++ became the premier language of choice among developers and programmers.

As a procedural programming language, C++ uses program structures such as i/o (input/output), assignment statement, iterative statements, conditional statements and subprograms. Data structures of C++ include integer, real, char, arrays, structs and pointers.

Employment opportunities are numerous and well paid for C++ programmers and developers looking to work in the field of Software Engineering or as an IT Professional. Oftentimes, C++ Professionals will also be familiar with C, Linux, Unix, Java, .NET and VB (Visual Basic). Developers working with C++ can expect to participate in a variety of programming opportunities: developing systems for trading applications for an Investment Bank, developing cutting edge software applications for groundbreaking new technologies (Smartphone, PDA, etc.) to creating applications for 3-D Imaging Software or spectroscopic systems.

C++ Tutorials available in this section include explanations for simple to more advanced concepts of C++ in detail with sample coding information. A new programmer or developer interested in learning about C++ programming language and finding out why C++ is one of the most widely used programming languages for creating large-scale applications can utilize the tutorials and articles on C++ made available in this section.

Exforsys Skill Tests

C++ Skill Test Beginner Level  
Training Index
  1. Object Oriented Programming Paradigm Author: Sripriya R

    OOP is a better way of solving computer problems compared to a procedural programming language such as C. OOP uses classes which contain members variables and methods functions . OOP uses a modular type of programming structure. OOP is a type of programming in which programmers define not only the data type of a data structure but also the types
  2. Elements of Object Oriented Programming Author: Sripriya R

    Object-Oriented Programming is centered on new concepts such as classes polymorphism inheritance etc. It is a well suited paradigm for the following Modeling the real world problem as close as possible to the perspective of the user. Interacting easily with computational environment using familiar metaphors Constructing reusable software
  3. Basic concepts of OOPS and Structure of C++ program Author: Sripriya R

    In this tutorial you will learn about Objects Classes Inheritance Data Abstraction Data Encapsulation Polymorphism Overloading and Reusability. Before starting to learn C it is essential to have a basic knowledge of the concepts of Object oriented programming. Some of the important object oriented features are namely Objects Classes
  4. C++ Variables and Data types Author: Sripriya R

    In this C tutorial you will learn about variables constants and data types in C rules for defining variable names short int int long int float double long double char bool declaring variables and constants. Variables A variable is the content of a memory location that stores a certain value. A variable is identified or denoted
  5. C++ Objects and Classes Author: Sripriya R

    In object-oriented programming languages like C the data and functions procedures to manipulate the data are bundled together as a self-contained unit called an object. A class is an extended concept similar to that of structure in C programming language; this class describes the data properties alone. In C programming language class describes
  6. How to Access C++ Class Members Author: Sripriya R

    In this C tutorial you will learn how to access Class members dot operator or class member access operator difference between struct and class and scope resolution operator. It is possible to access the class members after a class is defined and objects are created. General syntax to access class member Object_name.function_name arguments ;
  7. C++ Standard Input Output Stream Author: Sripriya R

    In this C tutorial you will learn about standard input stream and standard output stream explained along with syntax and examples. It is C programming language uses the concept of streams to perform input and output operations using the keyboard and to display information on the monitor of the computer. What is a Stream A stream is the
  8. C++ Operators Part I Author: Sripriya R

    In this C tutorial you will learn about operators the assignment operator arithmetic operators compound assignment operators increment and decrement operator the functionality of prefix and postfix operators relational and equality operators. The operators available in C programming language are Assignment Operator denoted by Arithmetic
  9. C++ Operators Part II Author: Sripriya R

    In this C tutorial you will learn about logical operators operator operator conditional operator comma operator bitwise operator and sizeof operator. Logical Operators The logical operators used are The operator is called NOT operator. This has a single operand which reverses its value. Logical Operators true
  10. C++ Manipulators Author: Sripriya R

    In this C tutorial you will learn what a manipulator is endl manipulator setw manipulator setfill manipulator and setprecision manipulator are all explained along with syntax and examples. What is a Manipulator Manipulators are operators used in C for formatting output. The data is manipulated by the programmer s choice of display. There
  11. C++ Decision Making Statements Author: Sripriya R

    In this C tutorial you will learn about decision making statements if statement if..else statement switch statement conditional operator along with syntax and examples. Decision-making is an important concept in any programming language and to accomplish this C uses the following decision making statements if statement if..else statement switch
  12. C++ Looping Author: Sripriya R

    In object-oriented programming language whenever a block of statements has to be repeated a certain number of times or repeated until a condition becomes satisfied the concept of looping is used. The following commands used in C for achieving looping for loop while loop do-while loop for loop The syntax of for loop is geshibot language c for
  13. C++ Type Conversions Author: Sripriya R

    In this C Tutorial you will learn about type conversions in C what is a type conversion how to achieve this automatic conversion otherwise called as implicit conversion and type casting otherwise called as explicit conversion. What is type conversion It is the process of converting one type into another. In other words converting an expression
  14. C++ Class Constructors and destructors Author: Sripriya R

    Class Constructors and destructors in C In this C tutorial you will learn about Class Constructors and destructors in C viz. Constructors What is the use of Constructor General Syntax of Constructor Destructors What is the use of Destructors and General Syntax of Destructors. Constructors What is the use of Constructor The main use
  15. C++ Arrays Author: Sripriya R

    In this C Tutorial you will learn about Concepts of Arrays in C what is an array how to access an array element declaration of array and how to access array elements. What is an array An array is a group of elements of the same type that are placed in contiguous memory locations. How to access an array element You can access an element
  16. C++ Multidimensional Arrays Author: Sripriya R

    In this C tutorial you will learn about Multidimensional arrays what is Multidimensional array how is Multidimensional arrays represented in C how to access the elements of a Multidimensional array. What is a Multidimensional Array A Multidimensional array is an array of arrays. How are Multidimensional Arrays represented in C Suppose
  17. C++ Structure Author: Sripriya R

    In this C tutorial you will learn about Structures declaring a Structure how to declare Structure Variable and how to access the structure members in C . What is a Structure A structure is a collection of variables under a single name. Variables can be of any type int float char etc. The main difference between structure and array is that
  18. C++ Structure Part II Author: Sripriya R

    In this C tutorial Structures Part II you will learn how to use structure in an efficient way and features of structures explained with examples. Structure Members Initialization As with arrays and variables structure members can also be initialized. This is performed by enclosing the values to be initialized inside the braces and after
  19. C++ String Representation and Handling Author: Sripriya R

    In this C tutorial you will learn about string representation and handling how a string is represented end string notation initializing char array character representation string literals example program to understand the character array concept and the accessing of character array in detail and how to represent an array of Strings. How is
  20. C++ Operator Overloading Part 1 Author: Sripriya R

    In this C tutorial you will learn about Operator Overloading in two Parts In Part I of Operator Overloading you will learn about Unary Operators Binary Operators and Operator Overloading - Unary operators. Operator overloading is a very important feature of Object Oriented Programming. Curious to know why It is because by using this facility
  21. C++ Operator Overloading Part II Author: Sripriya R

    Operator overloading is a very important aspect of object-oriented programming. Binary operators can be overloaded in a similar manner as unary operators. In this C tutorial you will learn about Binary Operators Overloading explained along with syntax and example. Operator Overloading - Binary Operators Binary operators when overloaded are
  22. C++ Functions Author: Sripriya R

    In this C Tutorial you will learn about the concepts of function - What is a function Features of a Function Declaring a Function Defining a function and Calling the function. What is a function A function is a structure that has a number of program statements grouped as a unit with a name given to the unit. Function can be invoked from
  23. C++ Functions with Arguments Author: Sripriya R

    In this C Tutorial you will learn about the Concept of Function with Arguments - What is an argument Declaring a function Function Definition and Calling the function. Previous chapters of this tutorial have discussed simple function definition writing declaration of function and function call. In this chapter the definition declaration and
  24. C++ Storage Classes Author: Sripriya R

    In this C tutorial you will learn about storage classes types of storage class variables - Automatic External and Static explained with examples. Storage classes In the context of scope of variables in functions exists the important concept of storage class. What is Storage Class Storage class defined for a variable determines the accessibility
  25. C++ Function Passing Types Author: Sripriya R

    In this C tutorial you will learn about function passing types two types of arguments passing in functions - passed by value and passed by reference are discussed here. The arguments passed to a function can be performed in two ways Passed By Value Passed By Reference Passed By Value In the earlier chapter all examples for the function
  26. C++ Inline Functions Author: Sripriya R

    In this C tutorial you will learn about the Inline function what is an inline function reason for the need of inline functions what happens when an inline function is written general format of inline function explained with example. What is Inline Function Inline functions are functions where the call is made to inline functions. The actual
  27. C++ Variables Scope in Functions Author: Sripriya R

    In this C Tutorial you will learn about Scope of Variables in Function Local Variables - Scope of Local Variables Global Variables - Scope of Global Variables. The scope of the variables can be broadly be classified as Local Variables Global Variables Local Variables The variables defined local to the block of the function would be
  28. C++ Inheritance Author: Sripriya R

    What is Inheritance Inheritance is the process by which new classes called derived classes are created from existing classes called base classes. The derived classes have all the features of the base class and the programmer can choose to add new features specific to the newly created derived class. For example a programmer can create a base class
  29. C++ Static Functions Author: Sripriya R

    The static member functions have a class scope and they do not have access to the this pointer of the class. When a member is declared as static that static member of class have only one such data for the entire class even though there are many objects created for the class. The main usage of static function is when the programmer wants to have a
  30. C++ Abstraction Author: Sripriya R

    Abstraction is one of the most powerful and vital features provided by object-oriented C programming language. Modularity is very important in any programming language it provides flexibility to users for using the programming language. This aspect is well achieved with high performance by the concept of abstraction in C . In object-oriented programming
  31. C++ Encapsulation Author: Sripriya R

    Introduction Encapsulation is the process of combining data and functions into a single unit called class. Using the method of encapsulation the programmer cannot directly access the data. Data is only accessible through the functions existing inside the class. Data encapsulation led to the important concept of data hiding. Data hiding is the implementation
  32. C++ Polymorphism Author: Sripriya R

    Introduction Polymorphism is the ability to use an operator or method in different ways. Polymorphism gives different meanings or functions to the operators or methods. Poly referring to many signifies the many uses of these operators and methods. A single method usage or an operator functioning in many ways can be called polymorphism. Polymorphism
  33. C++ Virtual Functions Author: Sripriya R

    What are Virtual Functions Virtual as the name implies is something that exists in effect but not in reality. The concept of virtual function is the same as a function but it does not really exist although it appears in needed places in a program. The object-oriented programming language C implements the concept of virtual function as a simple
  34. C++ Pure Virtual Function and Base Class Author: Sripriya R

    In this C tutorial you will learn about pure virtual functions declaration of a pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples. What is a Pure Virtual Function A Pure Virtual Function is a Virtual function with no body. Declaration of Pure Virtual Function
  35. C++ Friend Functions Author: Sripriya R

    In this C tutorials you will learn about friend functions the need for friend function how to define and use friend functions and few important points regarding friend functions explained with examples. The Need for Friend Function As discussed in the earlier sections on access specifiers when a data is declared as private inside a class
  36. C++ Static Functions Author: Sripriya R

    Topics Syntax How to access Example Keep in Mind Static member functions have a class scope and they do not have access to the this pointer of the class. When a member is declared as static a static member of class it has only one data for the entire class even though there are many objects created for the class. The main usage of
  37. C++ Pointers Author: Sripriya R

    Concept of Pointers Every storage location of memory has an associated address. The address is a number that grows sequentially. For every program placed in memory each variable or function in the program has an associated address. The address of operator The address of operator or Reference operator is denoted by the notation When the user
  38. C++ Void Pointer and Null Pointer Author: Sripriya R

    In this C tutorial you will learn about two interesting types of pointers; void pointers and Null Pointer. These pointers will be discussed in conjunction with syntax usage and example. Pointer to Void General Syntax void pointer_variable; Void is used as a keyword. Referring back to pointer definitions and usage it is known that
  39. C++ Memory Management Operators Author: Sripriya R

    Need for Memory Management operators The concept of arrays has a block of memory reserved. The disadvantage with the concept of arrays is that the programmer must know while programming the size of memory to be allocated in addition to the array size remaining constant. In programming there may be scenarios where programmers may not know the
  40. C++ Dereference Operator Author: Sripriya R

    In this C tutorial you will learn how to access the value of variables pointed by the pointer variables using pointer concept discussed in detail. It is possible to access the value of variables pointed by the pointer variables using pointer. This is performed by using the Dereference operator in C which has the notation . The general syntax
  41.