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

Programming Code to Reverse String





Print only Odd Numbered Levels of a Tree - Two functions in this method. One is to print all nodes at a given level ("printGivenLevel"), and other is to "print level order traversal" of the tree ("printLevelorder"). printLevelorder

Programs to Traverse the Tree Recursively - C Coding, using recursion, performs traversal operation across the nodes in a tree. The tree we have used is the "Binary Search Tree". The user "Generates a Tree" by inserting integers.

C++ Language Convert Binary to Decimal - Enter any number in binary to convert it into decimal, then display the equivalent decimal value on the output screen as shown here in the following program. In C++ program code

Calculate Area and Perimeter of Rectangle - To calculate "area and perimeter" of a square and rectangle in C++ Programming, you have to ask to the user to enter length and breadth of the rectangle and side length of the square

Count total number of Vowels Consonants - C program to find total number of vowels and consonants in a string using 'Loop and If Else'. 'Input String', store it in some variable say str. Initialize 2 other variables to store vowel and

Program Convert Lowercase to Uppercase - To convert the uppercase string to lowercase string in 'C++', ask to enter a string, now start converting Lowercase to Uppercase by using ASCII values. To convert Lowercase String to

C++ Programming code Copy File Content - To copy the "content of a file" to the other file in C++ programming, you have to first ask to the user to enter the "source file" to open the source file and ask to enter the target source

Finding ASCII Value of a Character in C++ - A character variable holds "ASCII value" (an "integer number" between 0 and 127) rather than that character itself in C programming. That value is known as ASCII value. Example