ICode9

精准搜索请尝试: 精确搜索
  • 实验五 模板类与多态2021-12-13 19:32:31

    task2     person.hpp 1 #ifndef PERSON_HPP 2 #define PERSON_HPP 3 4 #include<iostream> 5 #include<string> 6 #include<iomanip> 7 using namespace std; 8 9 class Person 10 { 11 private: 12 string name; 13 string telephon

  • 实验五2021-12-12 21:02:01

    实验二 Person.hpp #ifndef PERSON_H #define PERSON_H #include<iostream> #include<string> #include<iomanip> using namespace std; class Person { public: Person()=default; Person(string, string, string); void update_telephone();

  • 实验5 模板类与多态2021-12-12 20:35:44

    实验任务2 Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iomanip> #include<iostream> #include<string> using namespace std; class Person{ public: Person(){} Person(string na,string te):name(na),telephone(te){

  • 实验5 模板类与多态2021-12-12 20:35:26

    实验任务2  Person.hpp #ifndef PERSON_HPP #define PERSON_HPP #include<iomanip> #include<iostream> #include<string> using namespace std; class Person{ public: Person(){} Person(string na,string te):name(na),telephone(te){

  • 实验5 模板类与多态2021-12-12 18:33:15

    Person.hpp #include <iostream> #include <fstream> #include <string> #include<iomanip> using namespace std; class Person{ private: string name; string telephone; string email; public: Pers

  • 实验五2021-12-12 17:33:59

    实验任务2 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 { p

  • 实验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) {

  • 对象突然想玩坦克大战,我用Python三十分钟实现,看,他开心的像个der一样2021-12-12 09:30:50

    导语 今天是回忆童年的一天,文章游戏代码的话小编写了蛮多还,等啥时候有时间了我整理下笔记归类放着!! 《坦克大战》当年算是红遍大江南北的热门游戏。 别看这游戏画面简陋,它可是集合了所有经典游戏的成功要素—— 上手容易、升级强化、关卡丰富、可以双打,甚至还有良心到爆的编辑

  • 实验五模板类与多态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 = ""

  • 面向对象->实验报告五(C++)2021-12-11 22:03:04

    task2 题目要求 源码 main.cpp #include <iostream> #include <fstream> #include <vector> #include "Person.hpp" int main() { using namespace std; vector<Person> phone_book; Person p; while(cin>>p)

  • 实验五 模板类与多态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

  • 实验五2021-12-11 20:03:09

    1.Complex类运算符重载 task1_2 #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> using namespace std; class Complex{ private: double real; double imag; public: Complex(double r,double i):real(r),imag(i){};

  • 实验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

  • 实验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

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

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

ICode9版权所有