visual c++ - const_iterator Prolems -


I have not used const_iterator before and I'm having difficulty debugging it. Any help is appreciated on Windows 7 and VS 2010 Thanks. Type std :: basic_string & lt; Unsigned four & gt; Ustring; Passed data received (data [i], length); Typedef std :: map & lt; String, int & gt; MapMime; MapMime mymap; Mamp ["audio / original"] = 1; Mammap ["Audio / X-F"] = 2; Mammap ["Audio / X-Wave"] = 3; Mammap ["Video / MPEG"] = 4; Mamp ["video / mpeg-2"] = 5; Mamp ["Video / QuickTime"] = 6; (Mapmem :: Constructor for this = mymap.begin (), this end = mymap.end (), this! = End it. ++); {Size_t findPosition = Acquired data Find (this-> first); If found a match in position.position} else {// that MIME type was not found in the data ...}} (findPosition! = String :: npos)

You have an additional semicolon after the loop, you should delete it. Otherwise, 'this' is defined only for loop, which is empty.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -