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++ > If Else and Switch Case Code Examples

if Statement Program in C++





C Program Calculates Compound Interest - C Programming code input principle amount. Store it in some variable say principle. Input time in some variable say time. Input rate in some variable say rate. Calculate compound

C++ Program Reverse an Integer Number - This takes an integer input from the user and stores it in 'variable n'. Then the while loop is iterated until n != 0 is false. In each iteration, the remainder when the value of n is divided

Programming Code to Concatenate String - To concatenate strings in 'C++' Programming, you have to ask to enter the 2 string and start concatenating one string into other using the strcat() function as shown here in the sample

C Program Code Counts Number of Digits - C Program to count number of digits without using loop. The second logic uses logarithms to count number of digits in a given integer. Total number of digit in an integer is equal to

C++ Swap Two Numbers Using 3. Variable - Swap numbers means exchange the values of two variables with each other. Variable num1 contains 20 and num2 contains 40 after swap there values num1 contains 40 num2 contains

C++ Program Implement ScapeGoat Tree - Function to check if "tree is empty". Function to count number of "nodes recursively". And function to search for an element. Function to search for an element recursively. Function

C++ Program Sample Implements Vector - 'Insert element' into the vector. Deleting last element of the vector. Size of the vector and Display by index. "Dislplay by iterator". Clear the vector. Enter value to be inserted. Display

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