Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes

C++ Programming Code Examples

C++ > Sorting Searching Code Examples

C++ Program to Implement Radix Sort

Count Number of Words in the given Text - Program takes a string as input and count the number of words in the input string. Take the string as input, store it in the array 's[]'. Using for loop search for a space ' ' in the string and

Generate All Possible Subsets With Exactly - Algorithm takes the input of "n" data element and 'prints all possible' combination of length 'k'. It maintains a boolean array of length 'n'. If the corresponding boolean value is true, then

Check whether a number is Prime number - Prime numbers are positive integers greater than 1 that is only divisible by 1 and self. For example: 2, 3, 5, 7, 11 etc... C program input number and check whether the number is...

Accept Sorted Array and do Binary Search - C Program accepts the sorted array and does search using "Binary Search". Binary search is algorithm for locating the position of an item in a 'Sorted Array'. A search of sorted data, in

Code Finds Maximum Between 2 Numbers - Finding maximum in general is comparison of two numbers. In C programming we compare two quantities using relational operator. Use either > or < operator to compare 2 numbers

Perform Integer Partition for Specific Case - C++ program code generates all the possible "partition" can be generated by breaking the given value. This algorithm takes the input of a "natural number" and prints all the possible

C++ Program to Implementing Min Heap - Program display the minimum heap method of arranging elements. "Minimum Heap" is a method of "Arranging Elements" in a Binary search tree where value of the parent node is

Use Ternary Operator (?:) C Programming - The first expression conditionalExpression is evaluated first. This expression evaluates to 1 if it's true and evaluates to 0 if it's false. If the conditionalExpression is true, expression1 is