摘要:
task4 task.cpp #include <iostream> #include "Vector.hpp" void test() { using namespace std; int n; cin >> n; Vector<double> x1(n); for(auto i = 0; i < 阅读全文
摘要:
task4 main.cpp #include <iostream> #include "pets.hpp" void play(MachinePets &obj) { std::cout << obj.get_nickname() << " says " << obj.talk() << std: 阅读全文
摘要:
#1cpp #include<iostream> #include"point.hpp" #include<vector> using namespace std; void test1() { int n; cin >> n; vector<Point> x(n); x.at(0).show(); 阅读全文
摘要:
#实验任务一 model 1 #include <iostream> using std::cout; using std::endl; // 类A的定义 class A{ public: A(int x0, int y0): x{ x0 }, y{ y0 } {} void show() cons 阅读全文
摘要:
实验二 实验任务1 #include <iostream> #include <complex> int main() { using namespace std; complex<double> c1{3,4} , c2{4.5}; const complex<double> c3{c2}; co 阅读全文
摘要:
Test 1 #include<iostream> #include<cstring> #include<vector> using namespace std; int main() { string s1; string s2{"c plus plus"}; string s3{s2}; str 阅读全文
摘要:
welcome to my blogs! 阅读全文