# Category Archives: C++ Programs

Given N-sided polygon we need to find the number of triangles formed by joining the vertices of the given polygon with exactly one side beingâ€¦ Read More
ADALINE (Adaptive Linear Neuron or later Adaptive Linear Element) is an early single-layer artificial neural network and the name of the physical device that implementedâ€¦ Read More
Given a Pentagram and its inner side length(d). The task is to find out the area of Pentagram. The Pentagram is a five-pointed star thatâ€¦ Read More
In Probability, Discrete Uniform Distribution Function refers to the distribution with constant probability for discrete values over a range and zero probability outside the range.â€¦ Read More
The Boost String Algorithms Library provides a generic implementation of string-related algorithms which are missing in STL. It is an extension to the algorithms libraryâ€¦ Read More
Given an unsorted array, the task is to remove the duplicate elements from the array using STL in C++ Examples: Input: arr[] = {1, 2,â€¦ Read More
The is_sorted() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/is_sorted.hpp’ which tests if the given sequence is sorted or not according toâ€¦ Read More
Given a sorted array, the task is to remove the duplicate elements from the array using STL in C++ Examples: Input: arr[] = {2, 2,â€¦ Read More
The is_partitioned() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/is_partitioned.hpp’ which tests if the given sequence is partitioned according to the givenâ€¦ Read More
The one_of_equal() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/one_of.hpp’ which tests if exactly one of the elements of a sequence againstâ€¦ Read More
The none_of() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/none_of.hpp’ which tests all the elements of a sequence and returns true ifâ€¦ Read More
The one_of() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/one_of.hpp’ which tests the elements of a sequence and returns true if exactlyâ€¦ Read More
The all_of() function in C++ boost library is found under the header ‘boost/algorithm/cxx11/all_of.hpp’ which tests all the elements of a sequence and returns true ifâ€¦ Read More
We can use Exception handling with class too. Even we can throw an exception of user defined class types. For throwing an exception of sayâ€¦ Read More
Given that person A takes a days to do a certain piece of work while person B takes b days to do the same work.â€¦ Read More