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
How can you create a bulleted list, numbered list and an outline by using bullets and numbering command. Explain with the help of example.
How connect plc and pc through software
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
What is the disadvantage of templates ?
how to swap two numbers in a linked list without exchanging the data but only the links?
totoo po ba ang manga aliens!
give me the defination of inheritance?
Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1
what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
Explain References in C++
what is a template?
2 Answers Amazon, BITS, IBS, Wipro,
write a piece of c++ code which allocate memory to the 50 object of type CObj