Posts by Adrika Roy

Author Biographical Info: Not available

Implementation of static keyword in C++

By Adrika Roy

In this tutorial, we will learn how to implement static keyword in C++.  The keyword ‘static’ in C++ is used with variables and member functions. Static local variable.... Read More

Priests and devils puzzle problem in C++

By Adrika Roy

In this tutorial, we will learn how to implement the priests and devils puzzle/game using C++. PROBLEM: You are given that there are 3 priests and 3 devils who have to cross a rive.... Read More

static_cast and dynamic_cast in C++

By Adrika Roy

In this tutorial, we will learn about static_cast and dynamic_cast in C++. We know that, in C++, we can assign one variable to another of the same type. But what happens if the dat.... Read More

How to implement polymorphism in C++

By Adrika Roy

In this tutorial, we will see what is polymorphism and then understand how to implement it in C++. Introduction to Polymorphism in C++ The word polymorphism is made up of two words.... Read More

Two water jug problem in C++

By Adrika Roy

In this tutorial, we will learn how to solve the two water jug problem in C++. PROBLEM STATEMENT: You are given two unmarked jugs with capacities x and y liters. Determine the move.... Read More