What is the meaning of this?

Discussion in 'C++' started by nas, May 22, 2007.

  1. nas

    nas Guest

    What is the meaning of this line??

    static IFastString *(*pfnlr)(const char *)=0

    and

    IFastString *(**ppfn)(const char *)=&pfnlr

    Here IFastString is the abstract class.

    Thanks for ur help!
    nas, May 22, 2007
    #1
    1. Advertising

  2. nas

    Hari Guest

    nas je napisao:
    > What is the meaning of this line??
    >
    > static IFastString *(*pfnlr)(const char *)=0
    >
    > and
    >
    > IFastString *(**ppfn)(const char *)=&pfnlr
    >
    > Here IFastString is the abstract class.
    >
    > Thanks for ur help!


    static IFastString *(*pfnlr)(const char *)=0;

    pfnlr is static pointer to function that expects const char* and
    returns IFastString*.

    ppfn is pointer to pointer to function that expects const char* and
    returns IFastString* and it points to address of pfnlr.

    Look in google for some tutorials about pointers to function.

    Best,
    Zaharije Pasalic
    Hari, May 22, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sander Odekerken

    Meaning of output value?

    Sander Odekerken, May 18, 2004, in forum: VHDL
    Replies:
    2
    Views:
    2,469
    John_H
    May 18, 2004
  2. Parthav
    Replies:
    4
    Views:
    1,876
    Mike Treseler
    Jan 13, 2006
  3. Frank

    Meaning of <%#

    Frank, Dec 30, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    569
  4. .NET Follower

    Meaning Of Timeout in FormsAuthentication???

    .NET Follower, Feb 6, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    361
    .NET Follower
    Feb 6, 2004
  5. Replies:
    4
    Views:
    755
Loading...

Share This Page