Posts from C++

Check Leap Year or not in C++

By Vishnu Chand

Hello Coders!! In this tutorial, we will learn how to implement the logic behind checking if the year given as input to the C++ program is a leap year or not. Before going into the.... Read More

How to sort vector in descending order in C++

By Sanam Sahoo

Hello, Coders!! In this section, we will learn how to sort a vector in descending order in C++. Let’s discuss the methods, we can sort the vector: Using sort() function Using.... Read More

Check if an element exists in vector in C++

By Pyata Sandeep

Hey folks! Here, we are going to check if an element exists in a vector or not in C++. In general, you can find element in a vector using std functions. This returns an iterator to.... Read More

Actual purpose of int& foo() in C++

By Sanam Sahoo

Hello, Coders!! In this section, we will discuss the actual purpose of int& foo() in a C++ program. int& foo() in C++ In C++ int& foo() declares a function having a fun.... Read More

#include vs #include “filename” in C++

By Sanam Sahoo

Hello, Coders!! In this section, we will discuss the difference between #include <filename> and #include “filename” in a C++ program. Let’s understand what .... Read More

Change date format in C++

By Sanam Sahoo

Hello, Coders! In this section, we will learn about various date formats and how to change them in C++. Date Formats Type There are various types of date formats that we can use in.... Read More

How to print emoji in C++ console

By Vishnu Chand

Hey learners, welcome to the tutorial on how to print the emojis on c++ console. In this tutorial, we would print some of the known emojis by using do..while loop and switch case. .... Read More

How to merge unsorted arrays and sort them in C++

By Vishnu Chand

Hello learners, In this tutorial, we will deal with the merging and sorting concepts of C++. This topic is very interesting and is very useful in the IT industry. So, without laggi.... Read More