part 1 3.txt 的图片见part 2。 part 2 #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main() { string f Read More
posted @ 2019-06-12 23:13 丶随风 Views(132) Comments(1) Diggs(0)
(自己电脑的编译器可能有问题无法显示,在机房成功运行。main.cpp中的第7个空暂时还无法确认填入) Read More
posted @ 2019-05-28 21:39 丶随风 Views(130) Comments(0) Diggs(0)
Summary:本次实验主要是对单目运算符的重载,记得其特定的格式,并注意对私有成员访问时的使用函数的访问方式。 Read More
posted @ 2019-05-14 17:18 丶随风 Views(100) Comments(0) Diggs(0)
part 1 总结:本次实验主要是对多文件的调试和编辑,正确使用多文件的方式会使代码变得整洁清晰并且方便许多。 Read More
posted @ 2019-04-17 20:26 丶随风 Views(111) Comments(1) Diggs(0)
#include<iostream>#include<cmath>using namespace std;class Complex{ public: Complex(double real0=0,double imaginary0=0) { real=real0; imaginary=imagin Read More
posted @ 2019-03-31 15:54 丶随风 Views(112) Comments(1) Diggs(0)
#include <iostream> using namespace std; template<class T> void insertionSort(T a[],int n){ int i,j; T temp; for(int i=1;i<n;i++) { int j=i; T temp=a[ Read More
posted @ 2019-03-24 15:48 丶随风 Views(205) Comments(1) Diggs(0)
1.(1)if...else 用法 #include <iostream> #include <cstring> using namespace std; int main() { char X; cout<<"Menu:A(dd) D(elete) S(ort) Q(uit),Select one Read More
posted @ 2019-03-14 13:01 丶随风 Views(208) Comments(3) Diggs(0)