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++ > Recursion Code Examples

Factorial Using Recursion Program





Comparing two strings code in C language - C program code lexicographically compares two strings. Returns an integer based on the outcome. String1 is less than string2, string1 is equal to string2, string1 is greater than...

C Displays the attributes of a Selected File - Check a files attributes. Check if the file can be written to. File cannot be written. File can be written to. Check if file can be read. File cannot be read. File can be read. Check if...

C Programs Calculates the Simple Interest - Program calculates the simple interest given the principal amount, rate of interest & time. The Formula to calculate the Simple interest is: simple_interest = (p * t * r) / 100 where p...

Implement The Edmonds-Karp Algorithm - The Edmonds_Karp Algorithm which is used to compute the maximum flow between the 'sink and source vertex'. It is the same as the "Ford - Fulkersson" Algorithm except that it

Check a Number can be Expressed as Sum - Program to check whether a number can be expressed as sum of two prime numbers. To accomplish this task, "checkPrime()" function is created. The "checkPrime()" returns 1 if the

Find the Length of Strings without Built-in - This program takes a string as input and finds its Length without using the built-in function. Take a string as input and store it in the array 'string[]'. Using for loop count the number of

Generate Random Partition out of a Given - Program 'takes the input' of a set of integers or characters. It firstly generates the random partition of the "Length of the Set". Starting from the beginning, it 'prints the number' of

C Program sort directory entrys by filesize - Code compare function for qsort. Add ONE element to the array. Allocate memory for ONE 'struct node'. Copy the data into the new element ( structure ). Qsort array of...