2019年6月18日

实验六

摘要: 1. #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main() { string filename1, filename2, newfilen 阅读全文

posted @ 2019-06-18 11:36 卿慕棠 阅读(68) 评论(0) 推荐(0)

2019年6月4日

实验五

摘要: #include <iostream> #include<string> #include"MachinePets.h" #include "PetCats.h" #include "PetDogs.h" using namespace std; void play(MachinePets *p){ 阅读全文

posted @ 2019-06-04 12:46 卿慕棠 阅读(88) 评论(1) 推荐(0)

2019年5月20日

实验四

摘要: 1. #include <iostream> using namespace std; #include "car.h" #include "electricCar.h" int main() { // 测试Car类 Car oldcar("Audi","a4",2016); cout << " o 阅读全文

posted @ 2019-05-20 16:26 卿慕棠 阅读(85) 评论(0) 推荐(0)

2019年4月23日

实验三

摘要: 2. #include "graph.h" #include <iostream> using namespace std; Graph::Graph(char ch, int n): symbol(ch), size(n) { } void Graph::draw() { int i,j,k; f 阅读全文

posted @ 2019-04-23 22:55 卿慕棠 阅读(56) 评论(0) 推荐(0)

2019年4月2日

课堂小练习

摘要: double x,y; }; Complex::Complex(double a,double b) {x=a; y=b; } Complex::Complex(Complex &i) {x=i.x; y=i.y; } Complex::Complex(double a) {x=a; } void Complex::add(Complex i) {x=i.x+x; y=i... 阅读全文

posted @ 2019-04-02 21:58 卿慕棠 阅读(76) 评论(1) 推荐(0)

2019年3月26日

实验二

摘要: 1 2 3 求助了同学怎么做,还是有地方不太会,可能还是熟练度不够 阅读全文

posted @ 2019-03-26 23:41 卿慕棠 阅读(89) 评论(0) 推荐(0)

2019年3月19日

实验一

摘要: 第一题 1if else 2switch 第二题 1while 2do while 3for 第三题 1while 2do while 第四题 最后一题不太会,但愿有人指点一下 https://www.cnblogs.com/jzgjzg/p/10555540.html https://www.cn 阅读全文

posted @ 2019-03-19 21:35 卿慕棠 阅读(76) 评论(1) 推荐(0)

导航