Code:
vector<Program> programs = getMorningProgram(html);    
            vector<Program> midnightPrograms = getMidnightProgram(html);
            vector<Program> afternoonPrograms = getAfternoonProgram(html);
How can I merge midnightPrograms ,afternoonPrograms into programs vector?

My way:
Code:
            for(int i=0;i<midnightPrograms.size();i++)
            {
                Program p = (Program)midnightPrograms.at(i);
                programs.push_back(p);
            } 
                        
            for(int i=0;i<afternoonPrograms.size();i++)
            {
                Program p = (Program)afternoonPrograms.at(i);
                programs.push_back(p);
            }
I thinks very stupid,it also not compiled successfully under linux.
Do any idea to that?