Posts from C++

Place or shift all zeros to the extreme right of a number in C++

By Arijit Roychaudhury

In this tutorial, we will learn how to shift or place all zeros to the extreme right of a number in C++. We can solve this problem in linear time complexity using String. So, let u.... Read More

A Decision making program in C++

By Mriganka

Hi there, I have come up with this program that will help you make a decision, whether it is through tossing a coin or maybe rolling dice or through choosing a playable card throug.... Read More

Remove Leading Zeros from a Number in C++

By Arijit Roychaudhury

This tutorial topic is: How to remove leading zeros from a number or string in C++. For example, if you have a string or number which contains zeros as prefix, then you can easily .... Read More

How to find the cube root of a number in C++

By Barshan Paul

This is a pretty interesting topic and there are many ways to solving this problem. Well providing all of you know what cube root is (for those who don’t its the number which.... Read More

Increment (++) and Decrement (–) Operator in C++

By Ranjeet V

This tutorial is about the increment (++) and decrement (–) operator in C++. The increment operator increments the value of a variable while the decrement operator decrements.... Read More

How to write your first C++ program

By Ranjeet V

In this tutorial, you will learn how to write your first C++ program. It’s pretty simple. All you have to do is to write a “Hello, world!” program that is you hav.... Read More

To compare two strings in C++

By Sakshi Gupta

In this tutorial, we will learn how to compare two strings in C++. We will check whether they are equal or not. For example- str1=”codespeedy” str2=”codespeedy.... Read More

How to round off numbers nearest 10 in C++

By Barshan Paul

This tutorial will show you how to round off numbers to their nearest 10th multiple in C++. This means if we enter the number 21 the program will give an output 20. And if we give .... Read More

Related Posts