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++ > Beginners Lab Assignments Code Examples

Parameterized Constructor

Program to Generate All Pairs of Subsets - The "time complexity" of this algorithm is O (n*2^n). This algorithm takes the input of 'n' data element and prints unique subset pairs whose union gives the set. It generates 0 to

Calculates Area & Circumference of Circle - To calculate "area and circumference" of any circle in "C++", you have to ask to the user to enter the radius of circle, place the radius in a variable say r and make two variable, one for

C++ Finds Maximum Element in an Arrays - Construct "Binary Search" tree for "unsorted" data array. For the 'Maximum element' move the pointer to the rightmost child node. This value will be the minimum value among data.

Check Palindrome number using recursion - Recursive function in C to Check Palindrome number. Declare recursive function to check palindrome. First give a meaningful name to our function, say isPalindrome(). Along with

Remove all Repeated Characters in Strings - C program to remove all Repeated characters in a String using loops. Input string from user. Remove all duplicate characters from a given string. Remove all occurrences of a character

Coordinated Universal Time in C Language - C program code returns time in Coordinated Universal Time (UTC) (essentially Greenwich mean time). Printing the local time and date. Printing coordinated Universal Time and date

C Program Reverse String Without Library - Lets find the length of the string using library function strlen(). A "string" is charracter array and a "Character Array" have character range between 0 to length-1. Thus we have position

Remove all Occurrences of Word in String - C program remove all 'occurrences' of a given word in string using loop. Logic to remove all occurrences of a word in a string. Input string from user, store it in some variable say string.