logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

C++ 模板类动态内存分配

总时间限制: 1000ms 内存限制: 65536kB// 在此处补充你的代码描述程序填空,输出指定结果#include <iostream>#include <string>#include <cstring>using namespace std;template <class T>

C++ 实现大数加法类

这里运算符的重载比较难5:别叫,这个大整数已经很简化了!查看提交统计提问总时间限制: 1000ms 内存限制: 65536kB// 在此处补充你的代码描述程序填空,输出指定结果#include <iostream>#include <cstring>#include <cstdlib>#inc...

C++ 运算符重载小练习while(os>>m>>n)

4:你真的搞清楚为啥 while(cin >> n) 能成立了吗?查看提交统计提问总时间限制: 1000ms 内存限制: 65536kB// 在此处补充你的代码描述读入两个整数,输出两个整数 ,直到碰到-1#include <iostream>using namespace std;class MyCin{}...

程序设计与算法(三)C++面向对象程序设计 第八周题解(仿函数)

001:goodcopy总时间限制:1000ms内存限制:65536kB// 在此处补充你的代码描述编写GoodCopy类模板,使得程序按指定方式输出#include <iostream>using namespace std;template <class T>struct GoodCopy {};int a[2...

C++ 实现一个全面的MyString类

1:全面的MyString查看提交统计提问总时间限制: 1000ms 内存限制: 65536kB// 在此处补充你的代码描述程序填空,输出指定结果#include &lt;cstdlib&gt;#include &lt;iostream&gt;using namespace std;int strlen(const char * s)...

C++ 函数对象的过滤器练习

描述程序填空输出指定结果#include <iostream>#include <vector>using namespace std;struct A {int v;A() { }A(int n):v(n) { };bool operator<(const A & a) const {return v < a....

C++ 面向对象版本通讯录

Person.h定义Person类对象,以及Person类的比较,赋值,和输出重载#pragma once#include&lt;string&gt;#include&lt;ostream&gt;using namespace std;class Person{friend ostream &amp;operator&lt;&lt;(ostr

C++ 编写GoodCopy类模板

编写GoodCopy类模板,使得程序按指定方式输出#include <iostream>using namespace std;template <class T>struct GoodCopy {// 在此处补充你的代码};int a[200];int b[200];string c[200];string d[200];temp...

C++ 模板编程练习

数组求和 (100/100 分数)题目描述编写一个模板函数getSum,接收一个数组,返回该数组所有元素的和。部分代码已给出,请将代码填补完整。#include &lt;iostream&gt;using namespace std;/*请在这里填充代码*/int main(){int n, m;cin &gt;&gt; n &...

C++ 实现MyString类

总时间限制: 1000ms 内存限制: 65536kB// 在此处补充你的代码描述补足MyString类,使程序输出指定结果#include &lt;iostream&gt;#include &lt;string&gt;#include &lt;cstring&gt;using namespace std;class MyString {char *

    共 75 条
  • 1
  • 2
  • 3
  • 8
  • 请选择