Posts from C++

How to Get all the Files in a Directory using C++

By Shristi Singh

Hey Guys!! In this tutorial, we will learn how to get all the files in a directory/folder by using a simple C++ program. For this we need to use a header file known as dirent.h wh.... Read More

C++ program to build a trigonometric calculator

By Md. Suhail Arif

In this tutorial, we are going to make a Trigonometric Calculator using C++. Here, we will calculate basic trigonometric functions and their inverse and it can take input from user.... Read More

Find k-th smallest divisor of a number in C++

By Ashutosh Khandelwal

In this article, you will have a positive integer and you have to find its k-th smallest divisor. Let’s take two integers num and k for the same. The divisor of num is any su.... Read More

Find the nth Term in Dragon Curve Sequence in C++

By Pranav Prakasan

  This article discusses a method to find the nth term of the Dragon Curve Sequence. The first term of the sequence is ‘1’. The sequence is formed by alternatively.... Read More

std::include() function in C++

By Rosy Biswal

Here we will learn more about std::include() function in C++. This function recognizes the matched numbers in both containers. The objective is achieved by “include”, d.... Read More

C++ program to sort an array according to the order defined by another array

By Titichh Mishra

Hi there. Today we going to see how to sort an array in an order defined by another array in C++. The advantage of this is that you can create custom sorting algorithms. This is an.... Read More

Add two numbers without using Arithmetic Operators in C++

By Meghana Thatikonda

In this tutorial, we will learn how to add two numbers without using any arithmetic operators along with its implementation in C++. Add two numbers without using Arithmetic Operato.... Read More

Listing all files and sub-directories within a directory in C++

By Meghana Thatikonda

In this tutorial, we are going to learn how to get all the contents i.e., names of files and sub-directories within a given directory. And we are going to implement it using C++. I.... Read More

Related Posts