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

Php Programming Code Examples

Php > Date Time Code Examples

A date-time management script

C Programming I/O of Floats and Integers - Program to Prints the number right justified within 6 columns. Tries to print number right justified to 3 digits but number is not right adjusted because there are only 4 numbers.

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++ For Loop is Similar to While Loop but - Control statement itself has three parts: for ( "initialization"; test condition; run every time command ). "Initialization" part is performed only once at for loop start. We can initialize a

Insertion Sort Algorithm in C++ Language - Insertion sort is simple sorting algorithm that builds the final sorted array ('or list') one item at a time. It is much less efficient on large lists than more advanced algorithms such as quick

C++ Checks if an Undirected Graph is Tree - C++ Program to check whether an undirected 'graph is tree' or not. Graph is tree if it doesn't contain cycles. A recursive function that uses visited[] & parent to detect cycle in subgraph

C Code Finds the Sum of all Nodes in Tree - C Program finds the sum of all nodes in a tree such that any node is sum of values at left and right sub tree. Function to find depth of a tree. Function to modify the tree. Function to

C++ Codings Shutdown Computer System - To shutdown and restart you computer using C++, just call the function system() of stdlib.h library which will call the cmd or terminal. So to shutdown and 'restart your computer', just

Checking the Number is a Perfect Number - Program input a number and check whether the number is Perfect number or not. Perfect number is a positive integer which is equal to the sum of its proper positive divisors. So 6 is