Using c++ I need to make a program using map in c++ where the gender (M or F) is the key of 6 input names, and then it will ask the user to choose what gender to display (Male or Female). I am stuck with this, I do not know what to do next.
#include <iostream>
#include <map>
using namespace std;
int main()
{
map<char,string> mapName;
map<char,string>::iterator mapITR;
cout<<"Enter 6 names: "<<endl;
for(int a=1; a<=6; a++){
}
return 0;
}
Aucun commentaire:
Enregistrer un commentaire