Re: typedef Related doubts?
Quote:
Originally Posted by
rajeshs
In which suituations this kind
of typedef for function alias will be helpful ?
You use typedef to:
- avoid errors by simplifying complex declarations,
- avoid repetition,
- provide meaningful type names and hide implementation details (for example iterator instead of node *).
Quote:
Originally Posted by
rajeshs
If you know any tutorial or books to learn usage of C++ concepts please let me know?
See here: http://www.qtcentre.org/forum/f-gene...-books-29.html
Re: typedef Related doubts?
Thank you very much for your valuable reply,
now i am getting to know about typedef
If any body knows about advantages of using function pointers please help me?
Re: typedef Related doubts?
Quote:
Originally Posted by
rajeshs
If any body knows about advantages of using function pointers please help me?
Function pointers are used when a value isn't enough --- you can use them to pass around different behaviours. The classic examples are qsort() and callbacks. In OO world, FP were replaced by functional objects (a.k.a. functors).