摘要: 1.验证性实验 #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main() { string filename1, filename2, new 阅读全文
posted @ 2019-06-18 12:57 lj1831726125 阅读(130) 评论(1) 推荐(0) 编辑
摘要: #include #include using namespace std; class MachinePets{ public: MachinePets(string s):name(s){ }; virtual string talk(){ }; string name; }; class PetCats:public MachinePet... 阅读全文
posted @ 2019-06-03 21:25 lj1831726125 阅读(85) 评论(1) 推荐(0) 编辑
摘要: 1.车辆信息. 运行结果 2.重载运算符【】 运行结果 在实验之前已经开始准备了,完成时间还是长,慢慢来吧 阅读全文
posted @ 2019-05-21 22:05 lj1831726125 阅读(134) 评论(1) 推荐(0) 编辑
摘要: 2.图形 3.分数计算 阅读全文
posted @ 2019-04-21 12:50 lj1831726125 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; class complex { public: complex(double a1=0,double b1=0); complex(complex &x); void add(complex t); void show(); double mod(); private: double a; d... 阅读全文
posted @ 2019-04-07 11:00 lj1831726125 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 这次实验的学会了快速排序法,以及类的使用,这种实践比光看课本收益更多。 阅读全文
posted @ 2019-03-25 23:35 lj1831726125 阅读(141) 评论(2) 推荐(0) 编辑
摘要: 1.实现一个简单菜单 if else形式 #include<iostream>using namespace std;int main(){ char a; while(1){ cout<<"Menu:A(dd) D(selet) S(ort) Q(uit),selet one:"; cin>>a; 阅读全文
posted @ 2019-03-16 22:55 lj1831726125 阅读(216) 评论(3) 推荐(0) 编辑