Friend Function Snippets


16 May, 2016   

Example source code Friend Function

17 September, 2014   

PHP example code for using MySQL and a contact form to allow a group of users on a site to contact each other safely.

24 November, 2012   

Color header for Windows that integrates with count source code

Example source code for function pointer to member function of class

C++ code snippet for function pointer to member function of class

C++ code example for three dimension coordinate systems converter

C++ example code for three dimension coordinate systems converter

C++ code snippet for three dimension coordinate systems converter

C++ Source code for Three Dimension Coordinate Systems Converter

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...

12 August, 2012   

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

18 June, 2011   

You can create a function for logging system

28 August, 2017   

C++ source code for a simple hashtable

11 July, 2011   

We have created our first function, but a function usually need one or more parameters, so let us have a look at that. The next function is a simple echo function which just print the text to screen.

04 February, 2012   

PHP function example that writes a name when it is called.

Simple way to do the opposite of what the nl2br() function does- turns breaks () into new lines.

26 December, 2011   

Allows for the creation of calendars in HTML pages

You can define parameters with three types of parameters. 1. IN - The parameter can be referenced by the procedure or function. The value of the parameter can not be overwritten by the procedure or function. 2. OUT - The parameter can not be referenced by the procedure or function, but the value of the parameter can be overwritten by the...

An example code for Delphi function to check drive letter to see if its valid

This little function comes in handy. There's nothing worse than seeing a site with a copyright out of date.