摘要:
实验6.3 task3.1 1 #include <iostream> 2 #include <fstream> 3 #include <array> 4 #define N 5 5 6 int main() { 7 using namespace std; 8 9 array<int, N> x 阅读全文
摘要:
实验5.4 pets.hpp 1 #pragma once 2 #include <iostream> 3 #include <string> 4 using namespace std; 5 class MachinePets{ 6 public: 7 MachinePets(const stri 阅读全文
摘要:
实验4.5: vectorInt.hpp 1 #include <iostream> 2 using namespace std; 3 class vectorInt{ 4 public: 5 vectorInt(int n); 6 vectorInt(int n,int value); 7 vec 阅读全文
摘要:
实验3.5 Info.hpp 1 #include <iostream> 2 #include <string> 3 #include <iomanip> 4 using namespace std; 5 class Info{ 6 public: 7 Info(string name,string 阅读全文
摘要:
实验2.4 hpp: 1 #pragma once 2 #include <iostream> 3 #include <cmath> 4 using namespace std; 5 class Complex{ 6 public: 7 Complex(double a=0,double b=0): 阅读全文
摘要:
实验1.2 1 #include <iostream> 2 using std::cout; 3 using std::endl; 4 class Point{ 5 public: 6 Point(int x0=0,int y0=0); 7 Point(const Point& p); 8 ~Poi 阅读全文
摘要:
#include <iostream> #include <string> #include <vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s3{s2}; string s 阅读全文