- 2024-11-23实验4 类的组合、继承、模板类、标准库
实验任务2:GradeCalc.hpp:1#include<iostream>2#include<vector>3#include<string>4#include<algorithm>5#include<numeric>6#include<iomanip>78usingstd::vector;9usingstd::string;10
- 2024-11-23实验4 类的组合、继承、模板类、标准库
1.实验任务11#include<iostream>23usingstd::cout;4usingstd::endl;56//类A的定义7classA{8public:9A(intx0,inty0);10voiddisplay()const;1112private:13intx,y;14};1516A::A(intx0,inty0):x{x0}
- 2024-11-23实验4 类的组合、继承、模板类、标准库
1、实验任务2GradeCalc.hpp1#include<iostream>2#include<vector>3#include<string>4#include<algorithm>5#include<numeric>6#include<iomanip>78usingstd::vector;9usingstd::string;10usings