ICode9

精准搜索请尝试: 精确搜索
  • 实验5 模板类与多态2021-12-12 16:34:46

         Person.hpp代码如下:   #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<ostream> #include<istream> #include<string> #include<iomanip> using namespace std; class Person { public: Person() {} Person

  • 实验五2021-12-12 16:33:23

    实验任务2 Person.hpp #include<iostream> #include<string> using namespace std; class Person{ public: Person(){}; Person(string a,string b,string c=" "):name(a),telephone(b),email(c){} void set_telephone(s

  • 实验5 模板类与多态2021-12-12 15:02:32

    person.hpp: #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<iomanip> #include<string> using namespace std; class Person{ private: string name; string telephone; string email; public: Person(){}; Perso

  • 实验52021-12-12 14:03:11

    任务2 Person.hpp #pragma once #include<iostream> #include<iomanip> using namespace std; class Person { private: string name; string telephone; string email; public: Person() {}; Person(string na,string tel,string ema) {

  • 实验五模板类与多态2021-12-12 08:32:05

    Task2 Person.hpp #include<bits\stdc++.h> using namespace std; class Person { public: Person(); Person(string _name,string _telephone):name(_name),telephone(_telephone){} void change_telephone(string a) { telephone=a;

  • 实验5 模板类与多态2021-12-11 23:04:59

    三、实验内容 2. 实验任务2 Person.hpp: #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> using namespace std; class Person{ private: string name,telephone,email; public: Person() {} ~Person() {} Person(string

  • 实验5 模板类与多态2021-12-11 23:01:34

    四、实验结论 1.实验任务1 验证性内容。 2.实验任务2 给出Person.hpp源码和task2.cpp源码 Person.hpp #include <iostream> #include <iomanip> using namespace std; class Person { public: Person(){}; Person(string name0, string telephone0, string email0 = ""

  • 实验五 模板类与多态2021-12-11 21:34:06

    实验结论: 实验任务2: Person.hpp #ifndef Person_hpp #define Person_hpp #include <iostream> #include <string> #include <iomanip> using namespace std; class Person{ public: Person(){} ~Person(){} Person(string nam

  • 实验五(模板类与多态)2021-12-11 21:31:27

    task2: Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> using namespace std; class Person { private: string name; string telephone; string email; public: Person(string Name = "", s

  • 实验5 模板类与多态2021-12-11 20:02:16

    task2: person.hpp: #include <iostream> #include <string> using namespace std; class Person { public: Person() { } Person(string a, string b, string c = " ") : name(a), telephone(b), email(c) { } friend ostream&a

  • 实验5 模板类与多态2021-12-11 18:32:30

    Person.hpp #ifndef PERSON_H #define PERSON_H #include <iostream> #include <iomanip> #include <string> using std::cout; using std::cin; using std::endl; using std::ostream; using std::istream; using std::string; class Person { private

  • 实验五 模板类与多态2021-12-11 15:35:47

    实验二: task2.cpp: #include <iostream> #include <fstream> #include <vector> #include "Person.hpp" int main() { using namespace std; vector<Person> phone_book; Person p; while (cin >> p) phon

  • 实验五。2021-12-11 15:02:01

    #include<iostream> #include<string> #include<fstream> #include <vector> #include"person.h" using namespace std; int main() { vector<person> phone_book; person p; while (cin >> p) phone_book.push_back

  • 实验5 模板类与多态2021-12-11 13:00:57

    task2: person.h: #ifndef UNTITLED22_PERSON_H #define UNTITLED22_PERSON_H #include<iostream> #include<string> using namespace std; class Person { private: string name; int telephone; string email; public: Person(string n="

  • 实验五 模板类与多态2021-12-11 12:04:01

    task2 Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<iomanip> using namespace std; class Person { private: string name; string telephone; string email; public: Person(void) {} Person(string name_,str

  • 实验52021-12-11 11:02:11

    Person.hpp   #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> #include<iomanip> using namespace std; class Person { public: Person() {}; Person(string n, string t, string e ="") :name(n), telep

  • 实验5 模板类与多态2021-12-11 09:35:50

    实验任务2 Person.hpp源码 #ifndef PERSON_HPP #define PERSON_HPP #include<iostream> #include<string> #include<fstream> #include<iomanip> #include<limits> using namespace std; class Person{ public: Person(){} Person(string

  • 实验5 模板类和多态2021-12-10 12:01:30

    task2 //Person.hpp #include<iostream> #include<string> #include<iomanip> using namespace std; class Person{ private: string name; string telephone; string email; public: Person(string Name, string

  • 实验五 模板类与多态2021-12-09 22:02:58

    《实验任务2》 “Person.hpp” #include <iostream> #include <algorithm> #include <string> #include <iomanip> using namespace std; class Person { private: string name; string telephone; string email; public:

  • 数据结构之【堆的实现】2021-11-27 23:05:59

    通过前几次的博客我们大致了解了堆的性质,接下来我们用数据结构来封装堆 注意本篇博客建堆建的是大堆。 首先建堆 typedef int HPDataType; struct Heap { HPDataType* a; //数组 int size; //大小 int capacity; //容量 }; typedef struct Heap HP;  实现以下几种接

  • python 人物对打 类2021-11-27 16:04:12

    class Person: def __init__(self,name,hp,atk): self.name=name self.hp=hp self.atk=atk pass def __new__(cls, *args, **kwargs): #确定是否比赛开始 创建函数 if input('比赛是否开始yes / no:') == 'yes':

  • Unity学习笔记(4)飞机大战第四章「持续按键子弹间隔时间发射」「随机血条」「开始和结束界面」「在最后一个场景中得到前面场景对象的函数/值」「陨石坠落」2021-11-23 09:34:01

    一、实现效果 开始界面: 游戏界面: 结束界面 二、关键技术实现 1、 持续按键,但子弹不连续发射,而是间隔时间发射 主要思路是在按下按键时,设置一个定时器 public class MyJet : MonoBehaviour { public float deltaT = 0.5f;//设置一个你理想状态的子弹发射间隔时间 p

  • 堆的向下调整算法、堆的向上调整算法、堆的实现、Topk问题2021-11-21 16:33:56

    目录 一、堆 1、堆的概念 2、堆的性质 3、堆的分类 二、堆的向下调整算法 三、堆的创建  四、堆的向上调整算法 五、堆的实现 1、堆的初始化 2、堆的销毁 3、堆的插入 4、堆的删除 5、获取堆顶的数据 6、堆的数据个数 7、堆的判空 8、堆的打印 9、测试小例子  六、Topk问题 测

  • 数据结构-用堆解决Top-K问题2021-11-21 09:06:55

    目录 应用背景 处理策略 时间复杂度 过程及实现代码 测试 堆源码 应用背景 生活中我们每每都会遇到Top-K问题,例如搜索附近前几的的动漫,频率前几的搜索词条等等 示例: 如果只是数据比较少的,我们可以排序找到前几的数据,但是实际应用中我们时常都会面对海量的数据,大到内存无

  • seldom 实战技巧2021-11-15 01:03:22

    seldom 是我一直在维护的自动化测试框架。目前GitHub已经 500+ star。 最近在项目中使用Seldom + poium 编写自动化测试用例。接下来,我就分享一些使用技巧。 如何参数化测试用例 网站的首页,如上面的导航。于是,开始利用poium编写元素定位。 from poium import Page, Element clas

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有