Herkese merhabalar sorum şöyle;
Şöyle bir mapim ve arraylerim var.

Array dayHours{0,0,0,0,0,0};
Array1 day{"Monday","Tuesday","Wednesday","Thursday","Friday"};
map<pair<string,int>,pair<Array1 ,Array> > matchMap;
Şöyle de bir fonksiyonum var.
void Course::addCourse(){    string a;    int b;    int total;    int courseAdd;    
cout<<"How many course you want to add?"<<endl; 
   cin>>courseAdd; 
   cout<<"Enter the name of course and number of hours"<<endl;
    for(int i=0;i<courseAdd;++i) 
   {        setCourseName(a);        setHours(b);        getCourseList().insert({a, b});
        total += getHours(); 
       matchMap.insert({make_pair(a,b),make_pair(day,dayHours)});    }
Deneme amaçlı bi print fonksiyonu yazdım;
void Course::seeMap(){    map<pair<string,int>,pair<Array1 ,Array> >::iterator it;    
for(it=matchMap.begin();it!=matchMap.end();++it) 
   {        for(int i=0;i<5;++i) 
       {            cout<<(it->first).first<<(it->first).second<<(it->second).first[i]<<endl;        }    }}
Çıktısı şöyle oluyor;

How many course you want to add?
2
Enter the name of course and number of hours
Enter the course name
124124124
Enter the course hours
5
Enter the course name
12414124
Enter the course hours
6
You added the courses succesfully!
124124124--->5--->Monday
124124124--->5--->Tuesday
124124124--->5--->Wednesday
124124124--->5--->Thursday
124124124--->5--->Friday
12414124--->6--->Monday
12414124--->6--->Tuesday
12414124--->6--->Wednesday
12414124--->6--->Thursday
12414124--->6--->Friday
Ama bana lazım olan format şu şekilde;

Coursename1 ---> Coursehour1 ---> Monday;
Coursename2 ---> Coursehour2 ---> Tuesday;
Coursename3 ---> Coursehour3 ----> wednesday;
Fonksiyonlarımı nasıl düzenler isem istediğim formata erişeilirim? Yardımcı olabilir misiniz acaba?