Posts from C++

Calculate the occurrence of specific character in given string in C++

By Yash Shakya

This C++ program is able to calculate the occurrence of a character in a given string. The program involves the application of character array and loop statements. The logic is use.... Read More

How to find product of given two matrices in C++

By Yash Shakya

In this program, we are going to find the product of given two matrices in C++ with some basic commands and nested loop. This problem is based on the application of array. The logi.... Read More

How to count the number of spaces in a string in C++

By Raj Gaurav

hello everyone, in the previous tutorial we learned how to count the number of lines in a text file in C++, in this tutorial we will learn about how to count the number of spaces .... Read More

C++ program to implement bisection method

By Siddharth Chhabra

In this tutorial, we are going to learn about the implementation of the bisection method in C++. This method is used to find roots in a continuous function between two given interv.... Read More

How to create a CSV file in C++

By Pritam Hande

In this tutorial, we will learn how to create a CSV file in C++. What is a CSV file? It is a plain text file that stores data. Each row of this file contains data separated by a co.... Read More

Decimal to Octal conversion in C++

By snormy

This tutorial would help in learning the following: Conversion of numbers from decimal-system (using 0 to 9) to octal-system (using 0 to 7). Conversion of characters into their res.... Read More

Program to print the minimum steps to reach 0 in C++

By Anne Caroline Glory Prince

In this tutorial, we will learn how to print the minimum steps to reach 0 or zero in C++. The program accepts the number ‘N’ and any integer ‘K’. The  prog.... Read More

Digits – reverse pattern using C++

By Anne Caroline Glory Prince

In this tutorial, we will learn how to reverse the digits of the integer in reverse pattern using C++ program. The integer is obtained as input. It is put into an array and each di.... Read More