Hi all,
I want to use some container for this case:
i have 4 elements, say string1,string2,class1,class2.
I need string1,string2,class1 to be united, means if i access string1 in
this container you'll get class1. The problem is class2 is something flexible, sometimes it can be written, sometimes it can be deleted.
For example i had
{"Kanada","America","Weather","Rain")
when the main is run, the container will be something like this
{"Kanada","America",Weather","Sun").
which container should i use? or what container should i use?
i tried set(string,set(string,set(weather,condition))),
but it is really something hard to manipulate,
someone can help me?
thanks.
euclid135
0
Newbie Poster
Recommended Answers
Jump to PostCan you give us a better use case or some sort of algorithm? It almost sounds like you want some sort of map, but your post is a little confusing...
All 4 Replies
Fbody
682
Posting Maven
Featured Poster
euclid135
0
Newbie Poster
Fbody
682
Posting Maven
Featured Poster
euclid135
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.