摘要: #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99, 100, 101 }; ofstream out; out.open("dat 阅读全文
posted @ 2022-12-04 15:50 jh202183290025 阅读(12) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets( string s=" ") { nickname = s; } virtual string talk( 阅读全文
posted @ 2022-11-29 15:07 jh202183290025 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; class vectorInt { private: int n; int value; int* arr; public: vectorInt(int n0,int value0 = 0 ) { value = val 阅读全文
posted @ 2022-11-06 15:47 jh202183290025 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include <iostream> #include<vector> #include <string> #include<iomanip> using namespace std; class Info { public: Info() {} Info(string 阅读全文
posted @ 2022-10-24 21:35 jh202183290025 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include <iostream> #include<string> #include<iomanip> #include<cmath> class Complex { public: Complex() { real = 0; imag = 0; } Complex( 阅读全文
posted @ 2022-10-17 18:22 jh202183290025 阅读(12) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<iomanip> using std::cout; using std::endl; class Point { public: Point(int x0=0,int y0=0); Point(const Point&p ); ~Point() 阅读全文
posted @ 2022-10-03 23:27 jh202183290025 阅读(22) 评论(0) 推荐(0) 编辑