摘要:
#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; 阅读全文
摘要:
// // player.h // // The base class of player // including the general properties and methods related to a character #ifndef _PLAYER #define _PLAYER # 阅读全文
摘要:
#pragma #include<iostream> using std::cout; using std::endl; class vectorInt{ public: vectorInt(int n); vectorInt(int n,int value); vectorInt(vectorIn 阅读全文
摘要:
#include "textcoder.hpp" #include <iostream> #include <string> void test() { using namespace std; string text, encoded_text, decoded_text; cout << "输入 阅读全文
摘要:
#include<iostream> #include<cmath> using namespace std; class Complex { public: Complex(double a=0,double b=0):real{a},imag{b}{}; Complex(const Comple 阅读全文
摘要:
#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 阅读全文