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
write a program to search and display the position of an element in a single-dimentional array using function.
how to get the sum of two integers?
What are the various types of stl containers?
Explain how to insert a hyperlink in to an Excel worksheet and save a Word document as a Web page.
Define the terms: field, record, table and database
Why should a c++ programmer be interested in stl?
how to overload << and >> operator in c++
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3
write a program that input four digit no and finds it is palindrome or not
Give the output of the following program main() {int ret; ret=fork();ret=fork();ret=fork();ret=fork(); if(!ret) printf("sun"); else printf("solaris");
How can you create a bulleted list, numbered list and an outline by using bullets and numbering command. Explain with the help of example.