摘要:
#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 阅读全文
摘要:
#include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets( string s=" ") { nickname = s; } virtual string talk( 阅读全文
摘要:
#include<iostream> using namespace std; class vectorInt { private: int n; int value; int* arr; public: vectorInt(int n0,int value0 = 0 ) { value = val 阅读全文
摘要:
#pragma once #include <iostream> #include<vector> #include <string> #include<iomanip> using namespace std; class Info { public: Info() {} Info(string 阅读全文
摘要:
#pragma once #include <iostream> #include<string> #include<iomanip> #include<cmath> class Complex { public: Complex() { real = 0; imag = 0; } Complex( 阅读全文
摘要:
#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() 阅读全文