A Function To Reverse An Integer Array Snippets


This function is used to reverse an integer array. For example, if the array is {1,2,3,4,5}, these functions will return an array like {5,4,3,2,1}. The user needs to pass in a pointer to the array and the size of the array, and the function will return a pointer to an array in the reverse order.

13 February, 2014   

Just got inspired last night and decided to start a class to get the screen in "blocks" and check which one has changed to update only those.

28 April, 2011   

Over the years I have made quite a few software programs in Delphi, and inevitably I have also come up with many useful functions. Most of them I have never published on the Internet before, now I would like to list on blog. Part 1 are functions for managing integer or real numbers, they were written very early in 1997.

Example code for a short BubbleSort algoritm for Integer Arrays

01 April, 2015   

PHP code example for using the array_walk function to format an array.

01 July, 2015   

Loads and saves a compressed dump of an array

19 February, 2013   

PHP is_assoc_array function to check if given array is associative or not

02 February, 2013   

Example code for Generic Array To String Function

Change Date from dd/mm/yyyy to yyyy-dd-mm

13 September, 2015   

C code snippet for another merge sort of integer list

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

10 June, 2017   

C++ source code useful string functions

23 February, 2015   

Some example useful C code of string functions

06 June, 2011   

This reorders the elements of an array into a random order.

12 August, 2012   

Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.

14 September, 2013   

An example for MySQL Results To Array

An example of a simple double linked list using OOP techniques

In Delphi, procedural types (method pointers) allow you to treat procedures and functions as values that can be assigned to variables or passed to other procedures and functions. Here's how to call a function (or procedure) as a parameter of another function (or procedure) : Declare the function (or procedure) that will be used as a...

02 March, 2013   

How to resize an array in Java