正在加载中...
摘要: 前言 这个实验主要用来测试大家对现代 C++ 的掌握程度,实验要求如下: 简单翻译一下上述要求,就是我们需要实现定义在 src/include/primer/p0_starter.h 中的三个类 Matrix、RowMatrix 和 RowMatrixOperations,其中 Matrix 是 R 阅读全文
posted @ 2022-06-26 19:05 之一Yo 阅读(1091) 评论(0) 推荐(1) 编辑
摘要: 问题描述 假设有下面这么一段简单的代码,其中定义了两个类模板,一个基类 Animal,一个派生类 Dog: #include <iostream> #include <string> using namespace std; template <typename T> class Animal { 阅读全文
posted @ 2022-06-26 16:18 之一Yo 阅读(99) 评论(0) 推荐(2) 编辑