# C++ Programming Code Examples

## C++ > Beginners Lab Assignments Code Examples

### How to return the Structure from a Function

C++ Programs to Implement Skew Heap -
Inserting element "into the heap". Deleting "maximum element" from the heap. Merge two heaps. Print the 'maximum element' of the heap. And merge the present heap with

Program to Find Inverse of a Graph Matrix -
C++ code displays the Gauss Jordan method of computing inverse of a matrix. it proceeds with row by row "reduction of matrix" to unit matrix column-wise. First enter the order of

Any number of Digits Armstrong Sample -
An "Armstrong Number" is a number that is the 'sum of its own digits' each raised to the power of the number of digits is equal to the number itself. Some Armstrong numbers is 0

Check Vowel or Consonant use switch case -
Program to check Vowel or Consonant using switch-case statement. I already explained in sample to print number of days in months, if switch case contains same action for multiple

C Program to Display Factors of a Number -
This C Program takes a Positive Integer from the user & displays all the positive factors of that number. The for loop is iterated until j<= Number is False. In each iteration, number is

C++ Additions Subtractions Multiplication -
Perform addition, subtraction, multiplication and division of any two numbers in 'C++', you have to enter the 'two number' and enter the operator to perform the particular operation

Conditional Operator Check Even or Odd -
C programming code to input a number and check whether number is even or odd using Conditional/Ternary operator ?:. Check even or odd numbers using conditional operator...

Find Length of String by Defined Function -
C Program to find Length of string with using user 'Defined function'. By using user-defined function write a code to find Length of String. After accepting the string from the user we're