Key-Value pair with multiples
-
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 :)
-
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 :)
Pack
name
,model
into astruct
or alternatively, into astd::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] -
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 :)
-
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 :)
which one is the key?
-
Pack
name
,model
into astruct
or alternatively, into astd::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]Of course. That solved my issue. Thanks!
I appreciate your help all the time... CodingLover :)
-
which one is the key?
Actually the number is the key, and I used struct for the rest. :)
I appreciate your help all the time... CodingLover :)
-
Of course. That solved my issue. Thanks!
I appreciate your help all the time... CodingLover :)
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]