Hey guys I am trying to print the contents of a map container I have. I seem to be getting a nasty error from the compiler which seems to come from the pos = wordList.begin() part. any suggestions? I assume it’s talking about the assignment of pos=wordlist.begin() . If so you’d imagine that wordlist isn’t of type map<,string,unsigned>, from what the error says. You’re passing in a const map, so you’ve gotta use a const_iterator: map<,string,unsigned>,::const_iterator pos, should work. To explain. A const_iterator doesn’t allow you modify anything in the map, while you may with iterator s. Hey guys I am trying to print the contents of a map container I have. I seem to be getting a nasty error from the compiler which seems to come from the pos = wordList.begin() part. any suggestions? ifndef READFILE_H define READFILE_H include include include using namespace std, class Readfile{ private: string str, vector goArray, vector strArray, vector phyIntArray, vector subArray, vector proArray, … so i am trying to write a program that reads some data in from a text file and performs an operation on that data. the … I’m trying to write a small text editor in wxWidgets, using wxDev-Cpp. So far, all is well. However, for the life of me I can’t … those are the maps: multimap<,SortKey,T>, firstMap, multimap<,SearchKey,pair<,SortKey,T>,*>, secondMap, I am trying to insert a pair into the firstMap and get a pointer to this pair … class Node { private: int integer, Node *pointer, public: Node(int x = 0, Node *y = NULL) { integer = x, pointer = y, } … I am having a much harder time than I should trying to deallocate the memory used by an STL map. Some example code: void mainfunc() … Hi I’m creating a parser using Visual C++ and I’m having a problem reading the contents of a file per line. I tried using fread … Howdy guys. I have a program that encompasses creating a Fraction class. In the Fraction class should encompass addition, subtraction, multiplication, and division, and printing … I want to do something like this: unsigned char r[3] = {255, 0, 0}, map ColorList, ColorList[r] = 1, But I get the following: error: … I need help with inserting a string for both key and value to a map. while(!myHuffFile.eof()){ string word, code, int freq, myHuffFile >,>, word >,>, … Source.