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

Convert Centigrade to Fahrenheit





C++ Program Coding Multiply 2 Numbers - In this c++ program, user enter two numbers ('floating point numbers'). Then, the product of those two numbers is 'stored' in a variable and displayed on the screen. The 2 numbers

Finds the Frequency of the Word in String - Take any Sentence as input and store it in the array 'string[]'. If the input string has 't', 'h', 'e' and ' ' Consecutively, then store that values in the variables 't, h, e & space' respectively. Use

C Sample Code Prints the Pascal's Triangle - Pascal's triangle is one of the classic example taught to "engineering students". It has many interpretations. One of the famous one is its use with bionomial equations. The triangle is

Generate Random Subset by Coin Flipping - Prints a 'subset' of the given array using coin flipping method. The time complexity of this algorithm is O(n). Takes the input of 'n' data element and prints a possible subset. that, it

C Search All Occurrences of a Character in - Write a C program to 'Search all Occurrences' of a character in a String using Loop. Logic to search occurrences of a character in the given string. Input String from user, store it in some

Calculate Sum Calculate Average of Array - C Program calculates the sum & average of an array. It declares an array and then add the array elements and finds the average of the array. Find the sum of negative numbers and

Concatenate 2 Strings without using strcat - In the following program user would be asked to enter 'two Strings' and then the C program would 'concatenate them'. For concatenation we have not used the standard library strcat()

Lets Learn String Functions in C Language - Find the "Length of str1". Increment count till we reach the Terminating character. Find the "Length of str2". Check that we have enough 'space' for both strings. Copy 2. string to end