摘要:
task.4 cpp #include <iostream> #include "Pets.hpp" void play(MachinePets &obj) { std::cout << obj.get_nickname() << " says " << obj.talk() << std::end 阅读全文
摘要:
//task.5.cpp #include <iostream> #include "vectorInt.hpp" void test() { using namespace std; int n; cin >> n; vectorInt x1(n); for (auto i = 0; i < n; 阅读全文
摘要:
#include <iostream> using std::cout; using std::endl; // 类A的定义 class A{ public: A(int x0, int y0): x{ x0 }, y{ y0 } {} void show() const { cout << x < 阅读全文
摘要:
实验四 #pragma once #include <iostream> #include <string> #include <iomanip> #include <cmath> using std::cout; using std::endl; class Complex { public: C 阅读全文
摘要:
#include<iostream> #include<cstring> #include<vector> using namespace std; int main() { string s1; string s2{"c plus plus"}; string s3{s2}; string s4 阅读全文
摘要:
https://www.cnblogs.com/lxyyyds/ 阅读全文