- 博客(8)
- 收藏
- 关注
转载 【实验7】 流类库与输入输出
11-3: 1 #include <iostream> 2 #include <fstream> 3 4 using namespace std; 5 6 int main() 7 { 8 ofstream out("test1.txt"); 9 out << "已成功写入文件!" <&...
2018-06-20 20:09:00 330
转载 【实验6】 继承和多态
实验1: 1 #pragma once 2 3 class add 4 { 5 private: 6 int x,y; 7 public: 8 add(int, int); 9 int add_result(); 10 }; 11 12 class subtract 13 { 14 private: 15...
2018-06-03 14:12:00 165
转载 大整数加减乘除 - 初代
之前写的,写的不是很好…… 放在这相当于一个备份…… 欢迎提意见! 1 #include<iostream> 2 #include<string> 3 #include<cmath> 4 #define N 500 5 using namespace std; 6 7 class num 8 {...
2018-05-22 12:25:00 125
转载 【实验5】类和对象-3
实验1: #include <iostream> #include <vector> #include <string> using namespace std; // 函数声明 void output1(vector<string> &); void output2(vector<string...
2018-05-20 17:11:00 141
转载 【作业4】 类和对象-2
实验内容2 // 类graph的实现 #include "graph.h" #include <iostream> using namespace std; // 带参数的构造函数的实现 Graph::Graph(char ch, int n): symbol(ch), size(n) {} // 成员函数draw()的实现 // ...
2018-04-22 11:35:00 134
转载 【作业3】
实验1: #include<iostream> using namespace std; class square { private: float width,length; public: square(float a,float b) { width=a; ...
2018-04-07 15:23:00 65
转载 【作业2】
第一题: (1) 1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 char a; 6 cout<<"Menu:A(dd) D(elete) S(ort) Q(uit),Select one:"; 7 while(cin>&g...
2018-03-24 16:42:00 89
转载 【作业1】
1 2 之前是想考虑一下负数的,但发现负数和正数的算法没区别…… 转载于:https://www.cnblogs.com/rq1b-qsy666/p/8579383.html
2018-03-16 10:52:00 73
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人