摘要: #include<iostream> #include<fstream> #include<array> #define N 5 int main() { using namespace std; array<int, N> x{ 97,98,99,100,101 }; ofstream out; 阅读全文
posted @ 2022-12-03 21:52 waitwaitw 阅读(4) 评论(0) 推荐(0) 编辑
摘要: // // player.h // // The base class of player // including the general properties and methods related to a character #ifndef _PLAYER #define _PLAYER # 阅读全文
posted @ 2022-11-29 20:41 waitwaitw 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #pragma #include<iostream> using std::cout; using std::endl; class vectorInt{ public: vectorInt(int n); vectorInt(int n,int value); vectorInt(vectorIn 阅读全文
posted @ 2022-11-03 22:04 waitwaitw 阅读(28) 评论(0) 推荐(0) 编辑
摘要: #include "textcoder.hpp" #include <iostream> #include <string> void test() { using namespace std; string text, encoded_text, decoded_text; cout << "输入 阅读全文
posted @ 2022-10-20 17:26 waitwaitw 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double a=0,double b=0):real{a},imag{b}{}; Complex(const Comple 阅读全文
posted @ 2022-10-12 18:23 waitwaitw 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); Point(const Point&p ); Point() = default; i 阅读全文
posted @ 2022-09-28 19:44 waitwaitw 阅读(18) 评论(0) 推荐(0) 编辑