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

C++ Program to Check Armstrong Number





C++ Describe the Representation of graph - This algorithm represents a given graph using 'Adjacency List'. This method of representing graphs isn't efficient. The time complexity of this algorithm is O(v*e). Print the 'adjacency'

Program Copy String with strcpy Function - Input a "string from user" and store it to some variable say text1, declare another variable to store "copy of first string" in text2. Run a loop from 0 to end of string. Loop structure should

Program Shows & Opens "Send to" folder - C++ program that opens the "Send to" folder. The "Location of this folder" can be obtained from SHGetSpecialFolderLocation(). Then sf tries to convert the Item Identifier to a string

Global Variables in The C++ Programming - In C++ Language, a variable declared outside of any function ("Including Main as Well") is called "global variable". Global variables have their scope throughout the program, So they

Write structure into file in C Programming - The function adds the relatiuve addres to the index for a key. C function writes a record to the file. Sets the relative address for the next record to be the value of current file position

Find Reverse of a Number using Recursion - Declare recursive function to find reverse of a number. Lets give a meaningful name to our function, say reverse(). C function computes reverse of number, hence it must accept an...

Program to calculate Average of array in C - This C program should give an insight of how to parse (read) array. We shall use a loop and Sum up all Values of the array. Then we shall divide the sum with the number of elements

The C++ Language While Loop Statement - The statements within the while loop would keep on getting executed till the "condition" being tested remains "true". When condition becomes false, the control passes to the first