• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






周阳2020

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2021年12月12日

实验5 模板类与多态
摘要: Person.hpp #include <iostream> #include <fstream> #include <string> #include<iomanip> using namespace std; class Person{ private: string name; string 阅读全文
posted @ 2021-12-12 18:21 云洋2020 阅读(44) 评论(3) 推荐(0)
 

2021年11月29日

实验四
摘要: task2源代码virtual #include <iostream> #include <typeinfo> // definitation of Graph class Graph { public: virtual void draw() { std::cout << "Graph::draw 阅读全文
posted @ 2021-11-29 12:49 云洋2020 阅读(40) 评论(3) 推荐(0)
 

2021年11月8日

实验三 类与对象2
摘要: Vector_int.hpp #ifndef VECTOR_INT_HPP #define VECTOR_INT_HPP #include <iostream> #include <cassert> using namespace std; class Vector_int{ private: in 阅读全文
posted @ 2021-11-08 23:01 云洋2020 阅读(42) 评论(3) 推荐(0)
 

2021年10月31日

实验二 数组与指针
摘要: info.hpp源代码 #ifndef INFO_HPP #define INFO_HPP #include <iostream> #include <string> using namespace std; class info{ private: string nickname; string 阅读全文
posted @ 2021-10-31 11:02 云洋2020 阅读(49) 评论(4) 推荐(0)
 

2021年10月24日

实验一 类与对象
摘要: Complex.hpp #ifndef COMPLEX_HPP #define COMPLEX_HPP #include<iostream> #include<cmath> using namespace std; class Complex{ private: double real,imag; 阅读全文
posted @ 2021-10-24 12:07 云洋2020 阅读(38) 评论(3) 推荐(0)
 
实验一task4图片
摘要: 阅读全文
posted @ 2021-10-24 11:47 云洋2020 阅读(32) 评论(0) 推荐(0)
 
实验一task4.cpp
摘要: #include "User.hpp" #include <iostream> int main() { using namespace std; cout << "testing 1......" << endl; User user1("Jonny", "92197", "xyz@hotmail 阅读全文
posted @ 2021-10-24 11:45 云洋2020 阅读(36) 评论(0) 推荐(0)
 
实验一User.hpp
摘要: #ifndef USER_HPP #define USER_HPP #include <iostream> #include <string> using namespace std; class User{ private: string name; int passwd; string emai 阅读全文
posted @ 2021-10-24 11:41 云洋2020 阅读(36) 评论(0) 推荐(0)
 
实验一task3运行截图
摘要: 阅读全文
posted @ 2021-10-24 11:39 云洋2020 阅读(55) 评论(0) 推荐(0)
 
实验一task3.cpp
摘要: #include "Complex.hpp" #include <iostream> int main() { using namespace std; Complex c1(3, -4); const Complex c2(4.5); Complex c3(c1); cout << "c1 = " 阅读全文
posted @ 2021-10-24 11:27 云洋2020 阅读(36) 评论(0) 推荐(0)
 
下一页