Show the code in which you tried to "use the insert() function to insert things into the map, when it was just an instance and not a typedef".Originally Posted by Programmer_P
Show the code in which you tried to "use the insert() function to insert things into the map, when it was just an instance and not a typedef".Originally Posted by Programmer_P
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.
No need. It was a noobie mistake. I accidentally forgot to prefix the member function definition that assigns one map to another map to make a copy of the map, then returns the copy, with the class name followed by the "::" operator, which is why it was saying the map copy name didn't exist in the scope.
All good now.
I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.
Map::Insert is a far better choice even though it is syntactically more complex.aMap[currentNum - 1] = aStringVector.at(currentNum - 1);