ext_fails1.cpp
来自「包括ARM开发环境的使用和一些调试用的源程序」· C++ 代码 · 共 23 行
CPP
23 行
#include <algorithm>
#include <iterator>
#include <vector>
#include "Student_info.h"
#include "grade.h"
using std::back_inserter;
using std::remove_copy_if;
using std::remove_if;
using std::vector;
vector<Student_info>
extract_fails(vector<Student_info>& students) {
vector<Student_info> fail;
remove_copy_if(students.begin(), students.end(),
back_inserter(fail), pgrade);
students.erase(remove_if(students.begin(), students.end(),
fgrade), students.end());
return fail;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?