I am currently something something like this
std::map<std::string,std::string>::iterator it ; for(it=mmap.begin();it!=mmap.end();it++) { if(it->second.c_str() != "qa" && it->second.c_str() != "qb") { //Entered } } Now the problem with this code is that it goes into the entered section even when the iterator is
it("Testing this","qb") Thee above means that it->second = "qb"
Now my question is why is the code going ino the if statement if it->second = "qb" My thought is that it should not have because the conditional statment part is it->second.c_str() != "qb"
if(it->second != "qa" && it->second != "qb").