Posts by Ankur Sinha

Author Biographical Info: Not available

Difference between ‘endl’ and ‘\n’ in C++

By Ankur Sinha

In this tutorial, We are going to learn about endl and \n commands using C++. However, Both the commands are used for the same purpose i.e. To insert a new line. There is a subtle .... Read More

C++ String find() function

By Ankur Sinha

In this tutorial, We will be learning about the C++ string find() function. First, let us know something about it. String find() function in C++ String find() function is used to f.... Read More

string::npos in C++

By Ankur Sinha

In this tutorial, We are going to learn about the string:: npos using C++. Let us know more about it. What is string::npos? It is a static member value with the maximum value for a.... Read More

How to initialise static variable in C++

By Ankur Sinha

In this tutorial, we will learn how we will be initializing the static variable in C++. First, let us understand how to declare them? For a Detailed study go to the link Initializa.... Read More

Check if string is number in C++

By Ankur Sinha

In this tutorial, we will learn how to check whether the string is a number using C++. To better understand the problem, we are going to see some examples. For Example: Let us take.... Read More

How to get the file creation date of a file in C++

By Ankur Sinha

In this tutorial, We are going to learn about How to get the file creation date of a file in C++, and also, we are going to find out about other information such as its size, devic.... Read More

Show two digits after decimal point in C++

By Ankur Sinha

In this tutorial, We are going to learn about how to show floating numbers up to two digits decimal places using C++.  To have a better understanding of the problem we must consid.... Read More

Round a number to the nearest integer in C++

By Ankur Sinha

In this tutorial, We are going to learn about How to round off a number to the nearest integer in C++. The data types used  for rounding off the integer can be are as follows: flo.... Read More

Related Posts