C++ Programming Code Examples
C++ > Mathematics Code Examples
Generate Armstrong Numbers
Nested Namespace in C++ Programming -
In C++ programming, you can create nested 'namespaces'. One namespace can be a part of another namespace. Simply we can create namespace X, which will contain namespace
C Armstrong Numbers Between 2 Integers -
Program Print Armstrong Numbers between two Integers. In case of an armstrong number of 3 digits, the Sum of Cubes of each digits is equal to the number itself. For example: 407
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
C Circular Queue implementation through -
C Programming language code for circular queue implementation through Array. Add element to Circular Queue. Delete element from the Circular Queue. Do you want to do
Implementation for Linked List in the C++ -
Test if the list is logically empty. Return true if empty, false otherwise. Make the list logically "empty". Return an 'iterator' representing the header node. Return an iterator representing
Check Whether the Number is Palindrome -
If the reversed integer is equal to the integer then, that number is a palindrome if not that number is not a palindrome. In program, use is asked to enter a 'positive number' which is
C Build Binary Tree if Inorder or Postorder -
C Program to Build Binary Tree if inorder or postorder traversal as input. Create a new node. Create a balanced binary search tree. Insert a node in the tree. Create a node and
Program Checks if Number is Even or Odd -
If a number is exactly divisible by 2 then its an even number else it is an odd number. In this we have shared 2 ways to check whether the input number is even or odd. Using Modulus