- 博客(7)
- 收藏
- 关注
转载 c++实验六
实验1: 源代码: // 文件名均从键盘输入 #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main() { string filename1...
2019-06-16 11:49:00
251
转载 c++实验五
源代码: MachinePets.h: #ifndef MACHINEPETS_H #define MACHINEPETS_H #include <string> using namespace std; class MachinePets{ public: MachinePets(const string s); ...
2019-06-01 11:10:00
141
转载 c++实验四
battery.h: #ifndef BATTERY_H #define BATTERY_H using namespace std; class Battery{ public: Battery(int a=70); int getbatterysize(); int batterysize; }; #en...
2019-05-18 19:03:00
209
转载 实验三
Graph类的实现: 源代码; Graph.h: #ifndef GRAPH_H #define GRAPH_H class Graph{ public: Graph(char ch,int n); void draw(); private: char symbol; int siz...
2019-04-20 11:33:00
155
转载 类
源代码: #include<iostream> using namespace std; class Complex { public: Complex(float r1,float i1); Complex(float r1); void add(Complex c); voi...
2019-03-30 09:40:00
81
转载 c++实验二
c++实验二 第一题: 源代码: #include<iostream> using namespace std; struct Complex { double real; double imaginary; }; int add(int,int); double add(double,double); Complex add(Co...
2019-03-23 13:12:00
159
转载 c++实验一
实验结论: 2-28: (1):源码: (2)源码: 运行结果: 2-29: while源码: do while源码: for源码: 运行结果: 实验2-32: while源码: do while源码: 运行结果: 实验 2-34: 源码: 运行结果: 实验总结与体会: (1);前两个实验算是基础,学过...
2019-03-16 11:42:00
147
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅