Function Pointer Snippets


Example source code for function pointer to member function of class

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

CSS code example for Clickable Elements a Pointer Cursor

Does url_decoding while respecting utf8 characters.

Does url_decoding while respecting utf8 characters.

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

Example code for a short BubbleSort algoritm for Integer Arrays

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

27 July, 2013   

A dynamic output array by C++ Code

Delphi code to check you are connected to the Internet

C Code snippet for Dynamically Allocating a Multidimensional Array

30 August, 2012   

CSS code example for stylish submit buttons

22 January, 2012   

C++ example code for showing how to allocate and free memory

Converts the given floating-point value to a zero-terminated string. The supplied buffer should be large enough to accommodate the converted value. The value includes a decimal point and possiblesign and exponent information, plus a terminating null character, which is appended automatically. Returns: a pointer to zero-terminated...

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

06 August, 2012   

Showing how to work with dynamically allocated arrays

CSS code example how to custom File Input Styling in WebKit/Blink

Source code for Validate Longitudinal Redundancy Checksum

C++ Example code to convert a real number to the string