Function Pointer To Member Function Snippets

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

Example source code for function pointer to member function of class

Does url_decoding while respecting utf8 characters.

Does url_decoding while respecting utf8 characters.

CSS code example for Clickable Elements a Pointer Cursor

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.

Two objects are included here, a reader and a parser. All you need to do is instantiate the xmlParser object and let it do the job for you. nextToken() will return the next token, which can be a tag or the text between 2 tags. the isTag() will determine if this is a tag so you can do something smart with it. Lastly you can jumpTo($tagname) if...

Here's how to check whether you are connected to the Internet.

Delphi code to check you are connected to the Internet

C Code snippet for Dynamically Allocating a Multidimensional Array

Example code for a short BubbleSort algoritm for Integer Arrays

27 July, 2013   

A dynamic output array by C++ Code

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.

Here's a simple trick to execute a Delphi object's method by name:

18 June, 2011   

You can create a function for logging system

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.

30 August, 2012   

CSS code example for stylish submit buttons