摘要:
task3-1 #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99, 100, 101 }; 阅读全文
摘要:
task4 Pets.h #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string s); virtual st 阅读全文
摘要:
task5 VectorInt.h #pragma once #include<iostream> #include<cassert> using namespace std; class VectorInt { public: VectorInt(int n); VectorInt(int n, 阅读全文
摘要:
实验5 #pragma once #include<iostream> #include<string> #include<iomanip> using namespace std; class info { public: info(string nickname0,string contact0 阅读全文
摘要:
实验4 #pragma once #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double r = 0.0, double i = 0.0) :real(r), ima 阅读全文
摘要:
实验1 #include<iostream> #include<string> #include<vector> int main() { using namespace std; string s1; string s2{ "c plus plus" }; string s3{ s2 }; str 阅读全文