摘要: 1 合并文件,添加语句 #include<iostream>#include<fstream>#include<string>#include<cstdlib>using namespace std;int main(){string filename;cout << "输入打开的文件: ";cin 阅读全文
posted @ 2019-06-15 20:14 沉默帅哥 阅读(151) 评论(2) 推荐(0)
摘要: #include "pch.h"#include <iostream>#include<string>using std::cin;using std::cout;using std::endl;using std::string;//引用程序所需的函数标准声明,便于在型程序出错时找错,养成良好习惯 阅读全文
posted @ 2019-05-29 21:09 沉默帅哥 阅读(99) 评论(2) 推荐(0)
摘要: 1 2 实验总结与体验: 类的派生与继承,编程过程中纠正很多细节性错误,头文件类后的分号,参数传递,初始化方式。 阅读全文
posted @ 2019-05-18 15:25 沉默帅哥 阅读(101) 评论(2) 推荐(0)
摘要: 2.graph 阅读全文
posted @ 2019-04-21 16:34 沉默帅哥 阅读(146) 评论(3) 推荐(0)
摘要: 小结: 遇到了困难,去百度了一下资料 阅读全文
posted @ 2019-03-31 14:48 沉默帅哥 阅读(116) 评论(0) 推荐(0)
摘要: 1.函数重载编程练习编写重载函数add(),实现对int型,double型,Complex型数据的加法 2.编写实现快速排序函数模板,并在main()函数中,定义不同类型数据,调用测试。 #include<iostream>using namespace std;void QuickSort(dou 阅读全文
posted @ 2019-03-23 20:31 沉默帅哥 阅读(375) 评论(3) 推荐(0)
摘要: 实验结论 2-28 if...else switch do...while for 2-32 while do...while 2-34 实验总结与体会 格式与C语言有点区别,还是要学挺多东西的。穷举法不会。 阅读全文
posted @ 2019-03-15 22:34 沉默帅哥 阅读(206) 评论(3) 推荐(0)