End Google Ads 201810 - BS.net 01 --> Hello everybody,
I've got a console project generating 6 elements combinations of strings(6 out of 10)for example:
ia11,ia72,ia190,ia21,ia102,ia180
ia11,ia72,ia167,ia64,ia102,ia178
etc...
(altogether 210 combinations)
I've also got a map:
typedef map<string,vector<int> >container;
container::iterator it;
container map;
map.insert(make_pair("ia11", via11));
map.insert(make_pair("ia34", via34));
map.insert(make_pair("ia72", via72));
map.insert(make_pair("ia167", via167));
map.insert(make_pair("ia190", via190));
map.insert(make_pair("ia21", via21));
map.insert(make_pair("ia64", via64));
map.insert(make_pair("ia102", via102));
map.insert(make_pair("ia178", via178));
map.insert(make_pair("ia180", via180));
The map has also string keys(the same as in the console output in order to make comparison possible).
That's because I want to populate the console output with integer values from the map vectors.
In other words the map is the source of data for the output. To put it in other way: when we've got ia21 in the output, the programme should compare it to the map and find a string key in the map (which is ia21 too) and after that insert values of integer from the vector(value in the map)into the string output.
What is the simpliest way to do it? What classes, compare functions or bool operators should I use?
I would be grateful for any kind of help!