C++ Programming Code Examples
C++ > Games Code Examples
Heart Breaking Kid
Maximum Minimum Elements in the Array -
How to find maximum and minimum element in an array using recursion in C programming. Recursion works on the concept of divide and conquer. We break the problem in its smallest
Inheritance Allow Child Classes to Acquire -
A class that inherits another class is known as child class, it is also known as derived class or subclass. What is parent class? The class that is "being inherited" by other class is known as
Calculates Area & Circumference of Circle -
To calculate area and circumference we must know the radius of circle. C program code will prompt user to enter the radius and based on the input it would calculate the values. Make
Get Sum of Even Odd Numbers in a Range -
C Code declare recursive function to find sum of even number. Lets give a meaningful name to our function, say "sumOfEvenOdd()". Next the function accepts two integer values from
Take decimal number as input & converts -
C Program take a decimal number as input. Divide the input number by 8 and obtain its remainder and quotient. Store the remainder in the array. Repeat the step 2 with quotient
Reads an Array and Search for an Element -
C program accept an array of N elements and a key to search. Search is successful, displays the message "Successful Search". Otherwise, the message "Unsuccessful Search" is display.
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
C Program code to Print Number in words -
C program to input a number from user and print it into words using for loop. The above logic is correct however it print the words in reverse order. For example, suppose number