Results 1 to 4 of 4

Thread: typedef Related doubts?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Location
    India/Bangalore
    Posts
    156
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    26
    Thanked 1 Time in 1 Post

    Thumbs up 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?
    Thanks,
    Rajesh.S

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: typedef Related doubts?

    Quote Originally Posted by rajeshs View Post
    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).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.