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 is the difference between thread and process
Who created stl?
what is a template?
2 Answers Amazon, BITS, IBS, Wipro,
What is the STL?
differentiate between private, public and protected data members of the class using example.
How Find, Replace and Go To commands ca be used to substitute one character string for another? Explain with the heIp of an example.
what is an algorithm in terms of STL?
write a program to convert a decimal number in to its equivalent binary number?
I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?
Waht is inheritance
Difference between Structure and Class in C++?
sir please send me bpcl previous question papers
0 Answers BPCL Bharat Petroleum,