Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Key-Value pair with multiples

Key-Value pair with multiples

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CodingLover
    wrote on last edited by
    #1

    Hi all, I want to store values from a file into a map (which I have selected) with three fields, namely number, name, model. With map can I do that? Since I can use a value pair how can I handle the third parameter.

    I appreciate your help all the time... CodingLover :)

    C P C 3 Replies Last reply
    0
    • C CodingLover

      Hi all, I want to store values from a file into a map (which I have selected) with three fields, namely number, name, model. With map can I do that? Since I can use a value pair how can I handle the third parameter.

      I appreciate your help all the time... CodingLover :)

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      Pack name, model into a struct or alternatively, into a std::pair. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      C 1 Reply Last reply
      0
      • C CodingLover

        Hi all, I want to store values from a file into a map (which I have selected) with three fields, namely number, name, model. With map can I do that? Since I can use a value pair how can I handle the third parameter.

        I appreciate your help all the time... CodingLover :)

        P Offline
        P Offline
        panda_mo
        wrote on last edited by
        #3

        Sure,you just want to change the resouse of the picture.

        1 Reply Last reply
        0
        • C CodingLover

          Hi all, I want to store values from a file into a map (which I have selected) with three fields, namely number, name, model. With map can I do that? Since I can use a value pair how can I handle the third parameter.

          I appreciate your help all the time... CodingLover :)

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          which one is the key?

          image processing toolkits | batch image processing

          C 1 Reply Last reply
          0
          • C CPallini

            Pack name, model into a struct or alternatively, into a std::pair. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            C Offline
            C Offline
            CodingLover
            wrote on last edited by
            #5

            Of course. That solved my issue. Thanks!

            I appreciate your help all the time... CodingLover :)

            C 1 Reply Last reply
            0
            • C Chris Losinger

              which one is the key?

              image processing toolkits | batch image processing

              C Offline
              C Offline
              CodingLover
              wrote on last edited by
              #6

              Actually the number is the key, and I used struct for the rest. :)

              I appreciate your help all the time... CodingLover :)

              1 Reply Last reply
              0
              • C CodingLover

                Of course. That solved my issue. Thanks!

                I appreciate your help all the time... CodingLover :)

                C Offline
                C Offline
                CPallini
                wrote on last edited by
                #7

                You are welcome. :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups