会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mzzzy
博客园
首页
新随笔
联系
管理
订阅
2019年6月16日
实验六
摘要: part2 #include <iostream> #include <fstream> #include <string> using namespace std; int main(){ string a; ofstream file("3.txt",ios_base::app); file<<
阅读全文
posted @ 2019-06-16 15:22 mzzzy
阅读(142)
评论(2)
推荐(0)
2019年6月1日
实验五
摘要: #include <iostream> #include <string> using namespace std; class MachinePets{ public: MachinePets(const string s):nickname(s){}; string getNickname();
阅读全文
posted @ 2019-06-01 21:10 mzzzy
阅读(85)
评论(1)
推荐(0)
2019年5月19日
实验四
摘要: 1.car #ifndef BATTERY_H #define BATTERY_H class Battery{ public: Battery(int batterySize0=70); int show(); int batterySize; }; #endif #include "batter
阅读全文
posted @ 2019-05-19 17:07 mzzzy
阅读(129)
评论(2)
推荐(0)
2019年4月21日
实验3
摘要: graph项目: graph.h #ifndef GRAPH_H #define GRAPH_H class Graph { public: Graph(char ch,int n); void draw(); private: char symbol; int size; }; #endif gr
阅读全文
posted @ 2019-04-21 16:43 mzzzy
阅读(97)
评论(0)
推荐(0)
2019年3月31日
complex类的实现
摘要: #include <iostream> #include <cmath> using namespace std; class Complex{ public: Complex(double real1,double imaginary1); Complex(Complex &x); Complex
阅读全文
posted @ 2019-03-31 16:31 mzzzy
阅读(141)
评论(0)
推荐(0)
2019年3月24日
实验二
摘要: 1.编写重载函数add(),实现对int型,double型,Complex型数据的加法。在main()函数中定义不同类型 数据,调用测试。 #include <iostream> using namespace std; struct complex{ double real; double ima
阅读全文
posted @ 2019-03-24 22:15 mzzzy
阅读(186)
评论(1)
推荐(0)
2019年3月17日
实验1
摘要: 2-28 (1)if...else #include <iostream> using namespace std; int main() { while (true) { char a; cout<<"Menu:A(dd) D(elete) S(ort) Q(uit),Select one:" <
阅读全文
posted @ 2019-03-17 16:17 mzzzy
阅读(151)
评论(1)
推荐(0)
公告