In this tutorial, we will learn how to check whether a number is odd or even using a bitwise operator in C++. Normally, we check if the number is divisible by 2 and based on that.... Read More
In this tutorial, we will learn about semaphore in C++. We will also see a sample code to understand it better. What is a semaphore? A semaphore is a non-negative variable which ca.... Read More
In this tutorial, we will learn about list insert() in C++. The list insert() function in C++ inserts an element at any particular place on the list. This function takes three arg.... Read More
In this article, we are going to learn how to compare two strings in C++ language. After the user enters the two strings to be compared we can use the strcmp() function which is a.... Read More
In this tutorial, we are going to learn what is an IP address, hostname and later we will learn how to get the IP address from the hostname for Windows in C++ program. Each device .... Read More
In this tutorial, we will learn how to set, clear and toggle a single bit in C++. We will use bitwise operators in our program in order to do this. See more on this further in this.... Read More
Hello, guys in this tutorial we will learn about how to find a specific file in a directory in C++. We will look at some examples then we move further. Directory- C:\\Users\\MyPC.... Read More
Hello guys, here in this article we will learn how to check if a key is present in a C++ map or not. So first of all, we need to learn what is a map. The map is a data structure th.... Read More