dynamic field names

Discussion in 'C++' started by Zara, Mar 9, 2006.

  1. Zara

    Zara Guest

    On Thu, 09 Mar 2006 11:50:31 +0100, Kamran <> wrote:

    >
    >Hi
    >
    >Can one implement dynamic field names
    >in C++ and how ? I have been wrangling
    >with that problem for a while now and I
    >can't come up with a solution. The worst
    >of the matter is that I am a newbie in C++.
    >I believe one has something like this in
    >python and in matlab and some other languages.
    >
    >This is how one uses this in matlab:
    >
    >http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f2-41859.html
    >
    >
    >Any help is greatly appreciated



    Take a look at the possibilities of std::map

    Regards,

    Zara
     
    Zara, Mar 9, 2006
    #1
    1. Advertising

  2. Zara

    Kamran Guest

    Hi

    Can one implement dynamic field names
    in C++ and how ? I have been wrangling
    with that problem for a while now and I
    can't come up with a solution. The worst
    of the matter is that I am a newbie in C++.
    I believe one has something like this in
    python and in matlab and some other languages.

    This is how one uses this in matlab:

    http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f2-41859.html


    Any help is greatly appreciated

    Kamran
     
    Kamran, Mar 9, 2006
    #2
    1. Advertising

  3. Zara

    Geo Guest

    Kamran wrote:
    > Hi
    >
    > Can one implement dynamic field names
    > in C++ and how ? I have been wrangling
    > with that problem for a while now and I
    > can't come up with a solution. The worst
    > of the matter is that I am a newbie in C++.
    > I believe one has something like this in
    > python and in matlab and some other languages.
    >
    > This is how one uses this in matlab:
    >
    > http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f2-41859.html
    >
    >
    > Any help is greatly appreciated
    >
    > Kamran


    You should be able to do what you want using pointers to member
    functions, but you'd probably be better off looking for an alternative
    solution.
     
    Geo, Mar 9, 2006
    #3
    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. Bob
    Replies:
    1
    Views:
    421
    Lucas Tam
    Jul 30, 2004
  2. Andrew Fabbro

    Dynamic access to struct field names

    Andrew Fabbro, Jun 15, 2004, in forum: C Programming
    Replies:
    1
    Views:
    900
    Jack Klein
    Jun 15, 2004
  3. Sound
    Replies:
    2
    Views:
    503
    Randy Webb
    Sep 28, 2006
  4. VUNETdotUS
    Replies:
    25
    Views:
    516
    Thomas 'PointedEars' Lahn
    Nov 10, 2007
  5. jr
    Replies:
    3
    Views:
    501
Loading...

Share This Page