I'm creating a code which will map two distict strings.
I used two ways for that:
1) created a MAP and added raw data to it from file.
It is not that efficient.:sad:
2) created an object holding mapped values:
eg.
class c
{
string str1,str2;
public:
/// opearations
};
and Added these objects to VECTOR.
I have to search it sequentially As there are around 1.5 million enrties or objects
.
Can enyone show me the way to improve my program.
Or some other approach towards the problem?:rolleyes:
Does anybody having a function which takes the input as STL object reference and file path And load the data to STL object.
Also include exception handellings.