Classes And Objects In C++

Classes and Objects in C++

A Brief Introduction To Classes And Objects In C++. Classes and objects are the building blocks of Object-oriented programming in C++. Every entity, living or non-living can be represented as an object and programmed accordingly using C++. Thus entities like a car, desk, person, bird, animal, etc. can be represented …

Read more


SET In STL

SET IN STL

Quickly Learn SET In STL With Simple Examples. We will take an in-depth look at the STL container – Sets, here in this tutorial. Sets are associative containers with unique elements in a specific order. The value of an element in the set is also the key that is used …

Read more


MAPS In STL

MAPS IN STL

Get Ready To Explore MAPS In STL In Detail. Until now, we have seen most of the STL containers having a single data type. In this tutorial, we will begin discussing the associative containers in STL. The first such container is “Map”. The map is an associative container having a …

Read more


Priority Queue In STL

PRIORITY QUEUE IN STL (1)

An In-depth Look At Priority Queue In STL. In this Explicit C++ series, we have seen stacks and queues in the previous tutorial. In this tutorial, we will discuss yet another specialized container in STL, i.e. priority queue. A priority queue is a container adopter in STL. A priority queue …

Read more


Stacks And Queues In STL

STACKS AND QUEUES

Learn The Implementation Of Stacks And Queues In STL With Examples. Stacks and queues are two containers in STL that are very basic. They are the simplest containers that have wide applications in software programming. In this tutorial, we will see a detailed implementation of both these containers in STL. …

Read more


Lists In STL

LIST IN STL

Get To Know All About Lists In STL Along With Its Implementation. Lists are sequential containers. Lists contain elements in non-contiguous locations. We have discussed arrays and vectors in our previous tutorials. In case of the array and vector containers, as these containers store data in contiguous memory, insert operation …

Read more


Vectors In STL

VECTORS IN STL

Role Of Vectors In STL With Examples. So far, in this C++ series, we have seen static arrays which have a fixed size. If in the middle of the program, we have to store more elements in the array, then it becomes impossible and we are sure to get an …

Read more


Arrays In STL

ARRAYS IN STL

Role Of Arrays In STL With Examples. Arrays are contiguous memory locations. Array container is a sequential homogenous container and is of a fixed size. Actually, in programming, we rarely use such a static container as in real-time scenarios we need containers that can expand or shrink dynamically. Nevertheless, as …

Read more


Iterators In STL

ITERATORS IN STL

A Complete Overview Of Iterators In STL. In this tutorial, we will look into the details of iterators, their types, advantages, and the various functions they support. What is an Iterator? In general, an iterator is just like any object that points to a particular element in a range of …

Read more


Algorithms In STL

ALGORITHMS IN STL

An Explicit Study Of Algorithms And Its Types In STL. STL supports various algorithms that act on containers through iterators. As these algorithms act on iterators and not directly on containers, they can be used on any type of iterators. STL algorithms are built-in and thus save a lot of …

Read more


Strings, Pair & Tuples In STL

STRINGS, PAIR AND TUPLES IN STL

Quickly Learn The Basic Concepts Of Strings, Pair & Tuples In STL. In this tutorial, we will gain basic knowledge of Strings, Pair, and Tuples in STL, before we jump to detailed and bigger concepts like Iterators, Algorithms, and Containers. Although Strings are used in the same way as in …

Read more


Standard Template Library (STL): A Brief Introduction

Standard Template Library (STL)

A Complete Overview Of Standard Template Library (STL):  Standard Template Library (STL) of C++ is a collection of template classes that provide data structures such as arrays, vectors, queues, etc. STL is a library consisting of containers, algorithms, and iterators. As STL consists of a collection of template classes, it’s …

Read more


Templates In C++ With Examples

Templates in C++

Learn The Various Aspects Of Templates In C++. Templates are one of the most powerful features in C++. Templates provide us the code that is independent of the data type. In other words, using templates, we can write a generic code that works on any data type. We just need …

Read more


Multithreading In C++ With Examples

MULTITHREADING IN C++

A Brief Introduction To Multithreading In C++. In this tutorial, we will get an overview of multithreading in C++. So what is a thread? A thread is a working unit of a particular process. In multi-programming operating systems, different processes are executing simultaneously. In a similar way, we may want …

Read more


Preprocessor Directives In C++

Preprocessor Directives In C++

A Detailed Look At Preprocessor Directives In C++. The preprocessor is a unique feature of C++. In C++, we have steps like compilation, linking and execution for a typical program. In reality, we have a lot of other features in a C++ program that needs to be processed before passing …

Read more


Command Line Arguments In C++

Command Line Arguments in C++

A Brief Introduction To Command Line Arguments In C++. We have already seen the usage of arguments or parameters in our tutorial on functions. We also learned the purpose of passing arguments to/from functions. We can also have arguments passed to the main function. These are in turn known as …

Read more


Exception Handling In C++

Exception Handling in C++

Exception Handling In C++ For Making The Code Robust And Efficient. In any programming language, when we develop programs, we cannot guarantee that they will be error-free. At some point, we are guaranteed to encounter an error. The errors can be classified into two types: Compile time errors: These are …

Read more


File Input Output Operations In C++

File Input Output in C++

A Study On File Input Output Operations & File Pointer Functions In C++. In real-time programming, we deal with large chunks of data that cannot be accommodated from standard Input-Output devices. Hence we need to make use of secondary storage for storing data. Using secondary storage we usually store data …

Read more


Namespaces In C++

Namespaces in C++

A Complete Overview Of Namespaces In C++ With Simple Examples. So far in our previous tutorials, we have seen everything about variables, declarations, functions, and other such entities used in C++. While developing applications in C++ some peculiar situations may arise like same variable names being used twice or functions …

Read more


Type Conversions In C++

Type Conversions in C++

Check Out The Various Type Conversions Supported In C++. We hope you should be aware of all the data types that are available in C++ from our earlier tutorials. At times, a need may arise such that we need to convert one type to another. This is called type conversion …

Read more