dynamic field names

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kamran

    #1

    dynamic field names


    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/help.../f2-41859.html


    Any help is greatly appreciated

    Kamran

  • Zara

    #2
    Re: dynamic field names

    On Thu, 09 Mar 2006 11:50:31 +0100, Kamran <kamran@uio.n o> wrote:
    [color=blue]
    >
    >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/help.../f2-41859.html
    >
    >
    >Any help is greatly appreciated[/color]


    Take a look at the possibilities of std::map

    Regards,

    Zara

    Comment

    • Geo

      #3
      Re: dynamic field names


      Kamran wrote:[color=blue]
      > 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/help.../f2-41859.html
      >
      >
      > Any help is greatly appreciated
      >
      > Kamran[/color]

      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.

      Comment

      Working...