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

Post New Answer

More STL Interview Questions

What are the various types of stl containers?

0 Answers  


how to making game in c++ ?

0 Answers  


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

0 Answers   Appin, NIIT,


What are stl algorithms?

0 Answers  


What does stl stand for in basketball?

0 Answers  






Define the terms: field, record, table and database

5 Answers  


Explain how to insert a hyperlink in to an Excel worksheet and save a Word document as a Web page.

1 Answers  


I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?

2 Answers  


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

0 Answers  


What is stl in oop?

0 Answers  


write a piece of c++ code which allocate memory to the 50 object of type CObj

2 Answers  


Waht is inheritance

6 Answers  


Categories