Php Programming Code Examples
Php > Code Snippets Code Examples
Add data to a MySQL database
C Program Printing Upside Down Triangle -
Upside down triangle. A triangle with all sides equal is called "Equilateral Triangle". We shall now see how to print stars char, in equilateral triangle shape, but 'upside-down'. Equilateral
C Code Find Perfect Numbers from 1 to N -
C program find Perfect numbers between 1 to n. Input Upper Limit to find Perfect numbers. Store it in a variable say end. Run a loop from 1 to end, increment 1 in each iteration. The...
C Program Inputs two Strings & Compares -
Lets take 2 Strings as input and store them in the arrays string1[] and string2[] respectively. "Count the Number" of characters in both the arrays and store the result in the variables co1
C++ Code Add Two Matrix with 2D Arrays -
2 const variables row & col are used to define size. If we do not make both const then error found because without "const reserve word" they are behaving as variable. Before placing
C Programming language WAV file player -
You need a HUGE memory model to run this. Checks to see if a Sound Blaster exists at a given address, returns true if Sound Blaster found, false if not. Send a byte to the DSP
C++ Programming Opens Reads Text Files -
This function reads n lines from a file. Returns the amount of bytes read. Try to open txt file. Try to locate the starting line. Set the starting position. Read the lines. Close the file. Return
C Program to Linked List implementation -
Create list, add in the list, delete in the list, append two list, show list, add in beginning, add in end, add after a given element, return to main menu, delete in beginning, delete in
C++ Codings Quick Sort & Randomization -
Quick sort is based on an 'algorithmic' design pattern called 'divide-conquer'. Unlike Merge Sort it does not require 'extra memory space'. The average time complexity is "O(n*log(n))"