Exit  Download  Links  Contact  Disclaimer 


logo
The site dedicated to C and C++ Function Pointers


The Function Pointer Tutorials

 1.  Introduction to Function Pointers
   1.1  What is a Function Pointer ?
   1.2  Introductory Example or How to Replace a Switch-Statement
 2.  The Syntax of C and C++ Function Pointers
   2.1  Define a Function Pointer
   2.2  Calling Convention
   2.3  Assign an Address to a Function Pointer
   2.4  Comparing Function Pointers
   2.5  Calling a Function using a Function Pointer
   2.6  How to Pass a Function Pointer as an Argument ?  new
   2.7  How to Return a Function Pointer ?  new
   2.8  How to Use Arrays of Function Pointers ?
 3.  How to Implement Callbacks in C and C++ ?
   3.1  Introduction to the Concept of Callback Functions
   3.2  How to Implement a Callback in C ?
   3.3  Example Code of the Usage of qsort
   3.4  How to Implement a Callback to a static C++ Member Function ?
   3.5  How to Implement a Callback to a non-static C++ Member Function ?
     Example A: Pointer to a class instance is passed as an additional argument
     Example B: Pointer to a class instance is stored in a global variable
 4.  Functors to encapsulate C and C++ Function Pointers
   4.1  What are Functors ?
   4.2  How to Implement Functors ?
   4.3  Example of How to Use Functors
 5.  Topic Specific Links


new Newsgroup about function pointers! new


Projects

Source to HTML converter
The program converts source code to HTML. Actually it converts C/C++, Java and Delphi. It highlights almost everything, is very fast and lets the user edit the highlighting styles via a graphical preview interface. The program is free under the terms of the GNU General Public Licence! The source is written with Borland C++ Builder.



last updated: 10.07.01
© 2000/2001 by lars haendel
All code pieces were highlighted using the free lore's source converter. All trademarks are the sole property of their respective owners. I do NOT promote, speak in the behalf of, advertise or work for ANY computing, news or internet profit business. Everything I do, I do it for fun! If you have questions, annotations, contributions, want to suggest a link or found a bug: Mail me!!!!