Posts by Vishal Patil

Author Biographical Info: Not available

std::transform() in C++

By Vishal Patil

Hello everyone, in this tutorial we learn about the std::transform() function available in C++. The transform function is defined under the algorithm header file. The transform fun.... Read More

set::emplace() in C++ with examples

By Vishal Patil

In this tutorial, we will learn about set::emplace() function available in C++. set::emplace() We will cover these: Basic function of set::emplace(). Syntax Few examples Actual imp.... Read More

atol(), atoll() and atof() functions in C++

By Vishal Patil

Hello everyone, in this tutorial, we will learn about the atol() , atoll() and atof() functions available in C++. atol() function atol() function is used to convert string value in.... Read More

C++ Program to replace a word with asterisks in a sentence

By Vishal Patil

Hello everyone, in this tutorial, we will write a C++ program to replace a word with asterisks in a sentence. Below is the given C++ code that will replace the specific word with a.... Read More

Nested Ternary Operator in C++

By Vishal Patil

Hello everyone, in this tutorial, we will learn about the nested ternary operator in C++. It is called a ternary operator because it uses three operands for its operation. It is al.... Read More

std::get_temporary_buffer in C++

By Vishal Patil

Hello everyone, in this tutorial, we will learn about the get_temporary_buffer in C++. std::get_temporary_buffer Generally, buffer refers to a block of computer memory that serves .... Read More

Check if a given array contains duplicate elements within k distance from each other in C++

By Vishal Patil

Hello everyone, in this tutorial, we will check if a given array contains duplicate elements within k distance from each other in C++. Examples Input 1 : a[] = {1,4,2,1,5} k=2 Outp.... Read More

Virtual call from constructor or destructor in C++

By Vishal Patil

Hello everyone, In this tutorial, we will learn about calling the virtual function from the constructor or the destructor of the class in C++. Before moving to this topic you shoul.... Read More