final_project/Interface.cpp
// add_assignment and edit_assignment are somewhat WET
// but I really wanted to use emplace_back

add_assignment and edit_assignment are somewhat WET
but I really wanted to use emplace_back
add_assignment and edit_assignment are somewhat WET but I really wanted to use emplace_back
void add_assignment(std::vector<Grade>& grades){
        std::string name;
        double max_score, score;
        collect_grade_data(name, max_score, score);
        grades.emplace_back(name, score, max_score, "none\n");
    }
void add_assignment ( std :: vector < Grade > & grades ) { std :: string name ; double max_score , score ; collect_grade_data ( name , max_score , score ) ; grades . emplace_back ( name , score , max_score , " \n " ) ; }
add_assignment and edit_assignment are somewhat WET
but I really wanted to use emplace_back
add_assignment and edit_assignment are somewhat WET but I really wanted to use emplace_back