I have a map that looks like this:
When I try this the compiler spews out a bunch of error messages that I don't understand:Code:std::map<std::string, double> table;
Code:std::string name = "foo"; std::map<std::string, double>::iterator it = table.find(name); if (it == table.end()) {std::cout << "Variable not found" << std::endl;}