Is there any error below, its a code to delete all entires
from a map
#include <map>
#include iostream.h
int main()
{
int i =0;
map <int, char> TestMap;
while(i<3)
{
TesMap.insert(TestMap::value_type(i,Test));
i++;
}
typedef map<int, char> :: iterator mapIter =TestMap.begin();
if(mapIter!=TestMap.end())
{
TestMap.erase(mapItrer);
++mapIter;
}
return 0;
}
No Answer is Posted For this Question
Be the First to Post Answer
What are stl algorithms?
How to write a function that goes through an array of characters and eliminates any elements that are not letters (Legal letters can be either in an uppercase or a lowercase format.) The function removeNonLetters should return the new effective size of the array as the result.
what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
Which data structure gives efficient search? A. B-tree B. binary tree C. array D. linked list
21 Answers ABC, Sun Microsystems,
What does stl stand for in basketball?
What is the Difference between CArray and CList?
1 Answers ProdEx Technologies, Siemens,
What is a stl vector?
how to overload << and >> operator in c++
what is the difference between thread and process
What is stl in c++ with example?
what is strcture i++ i ++i answer to this i=5 what is the out put
What are the symptoms of stl?