Skip to content

Category Archives: C++ Programs

In this article, we will discuss Return Type Deduction in C++14. Using an auto return type in C++14, the compiler will attempt to deduce the… Read More
While programming in C++ we often use a class multiple times, and hence it requires to create a header file and just include it in… Read More
Prerequisite: Vectors in C++ STL Vectors are known as dynamic arrays with the ability to resize themselves automatically when an element is inserted or deleted,… Read More
In this article, we will be discussing starts_with() and ends_with() with examples in C++20. starts_with() This function efficiently checks if a string begins with the… Read More
In C++ programming, the default background of the output screen is black and the text color is the white color, the task is to color… Read More
The cin object in C++ is used to accept the input from the standard input device i.e., keyboard. it is the instance of the class… Read More
In this article, we will discuss how to draw a line using OpenCV in C++. The idea is to use the line() function from OpenCV… Read More
Line Control Directive: Whenever a program is compiled, there are chances of occurrence of some error in the program. Whenever the compiler identifies an error… Read More
The cout object in C++ is an object of class iostream. It is defined in iostream header file. It is used to display the output… Read More
The cin object in C++ is an object of class iostream. It is used to accept the input from the standard input device i.e. keyboard.… Read More
In this article, we will discuss the very basic and most common I/O operations required for C++ programming. C++ runs on lots of platforms like… Read More
Array of Objects:It is an array whose elements are of the class type. It can be declared as an array of any datatype. Syntax: classname… Read More
std::numeric_limits::max(): The std::numeric_limits<T>::max() function is used to get the maximum finite value representable by the numeric type T. All arithmetic types are valid for type… Read More
This function ecvt() converts the double value to string value and returns a pointer to it. The library function defined in stdlib.h header file. Syntax:… Read More
Exit a Loop in C++: If the condition of an iteration statement (for, while, or do-while statement) is omitted, that loop will not terminate unless… Read More

Start Your Coding Journey Now!