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

Simple Program for Exception Handling with Multiple Catch Using C++ Programming





Print only Odd Numbered Levels of a Tree - Two functions in this method. One is to print all nodes at a given level ("printGivenLevel"), and other is to "print level order traversal" of the tree ("printLevelorder"). printLevelorder

Check Even or Odd using Conditional and - C input any number and check whether the given number is even or odd using bitwise operator. Check to whether a number is even or odd using bitwise operator in C. Logic to

Check Vowel or Consonant use switch case - English Alphabets a, e, i, o, u both lowercase & uppercase are known as vowels. Alphabets other than Vowels are known as Consonants. Input an alphabet from user. Store it in some

C++ Program to Solve Knapsack Problem - This is a C++ Program to 'knapsack problem' using dynamic programming. The knapsack problem or "rucksack problem" is a problem in combinatorial optimization: given a set of

Encode the String Display Encoded Strings - Read a 'five-letter' Word into the pc, and then encode the word on a letter-by-letter basis by subtracting 30 from the Numerical value that is used to represent each Letter. Thus if ASCII

Find Length of Strings Without use Library - Its easier to find the length of the string using given library function, but in this program we are finding the "Length of the String" without using Library Function. In the above program

Program Find the Number of Occurrences - 'Binary Search tree' for a given unsorted data array & maintain an additional count variable. If any 'Element is Repeated' then increase the count of that 'Node'. Proceed with the search

C Add Corresponding Positioned Elements - C Program to Add Corresponding Positioned Elements of 2 Linked Lists, function to create nodes of numbers, function to display the list of numbers, function to free the allocated list