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 the various types of stl containers?
how to making game in c++ ?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
What are stl algorithms?
What does stl stand for in basketball?
Define the terms: field, record, table and database
Explain how to insert a hyperlink in to an Excel worksheet and save a Word document as a Web page.
I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
What is stl in oop?
write a piece of c++ code which allocate memory to the 50 object of type CObj
Waht is inheritance