C++ Programming Code Examples
C++ > File Operations Code Examples
Programming Code to Delete Files
Finds Factorial of Number using Recursion -
This c program prompts user for entering any integer, finds the Factorial of input number & displays the output on screen. Use a recursive user defined function to perform the task. We
Program to Implement strpbrk() Function -
Locates "first occurrence" in string string1 of any character in string string2, If a character from string string2 is found, a pointer to the character in string 'string1' is returned, if not
Find the Length of Strings without strlen() -
We are Counting the Number of characters in a given String to find out & display its Length on console. Upon 'execution' of this program, the user would be asked to enter string, then
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
Implementing Disjoint Set Data Structure -
This C++ program implements the "Disjoint" Set data structure. It is a data structure that keeps track of a set of elements partitioned into a number of disjoint ("nonoverlapping")
Count total number of Negative Elements -
C program to read elements in an array and count total number of negative elements in array. Program to find all negative elements in an array. Logic to count total negative and
C programming code right rotate an array -
C code to right rotate an array by n position. How to right rotate an array n times in C. Logic to rotate an array to right by n position in C program. Read elements in an array say
Checking the Number is a Perfect Number -
Program input a number and check whether the number is Perfect number or not. Perfect number is a positive integer which is equal to the sum of its proper positive divisors. So 6 is