摘要: #include <cstdlib> #include <iostream> #include <string> #include <algorithm> using namespace std; class MyString:public string { public : MyString(){ 阅读全文
posted @ 2022-02-22 10:07 icefield817 阅读(74) 评论(0) 推荐(0) 编辑
摘要: #include <cstdlib> #include <iostream> using namespace std; int strlen(const char * s) { int i = 0; for(; s[i]; ++i); return i; } void strcpy(char * d 阅读全文
posted @ 2022-02-20 22:26 icefield817 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> using namespace std; const int MAX = 110; class CHugeInt { public: int a[2 阅读全文
posted @ 2022-02-20 17:24 icefield817 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstring> using namespace std; class Array2 { public: int x, y; int * p; Array2() {} Array2(int xx, int yy) :x(xx), y(yy) 阅读全文
posted @ 2022-02-20 17:23 icefield817 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class Animal { public: static int number; virtual ~Animal() { } }; class Dog:public Animal { public: static i 阅读全文
posted @ 2022-02-19 22:49 icefield817 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class Point { private: int x; int y; public: Point() { }; friend istream& operator>> (istream & is,Point & pp 阅读全文
posted @ 2022-02-19 22:48 icefield817 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <cstring> using namespace std; class MyString { char * p; public: MyString(const char * s) { if( s) { p 阅读全文
posted @ 2022-02-19 22:46 icefield817 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class MyInt { int nVal; public: MyInt( int n) { nVal = n ;} MyInt& operator- (int n) { nVal -= n; return *thi 阅读全文
posted @ 2022-02-19 22:46 icefield817 阅读(88) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> using namespace std; static int n; static int* sumBloodArr; static int (*manBloodArr)[5]; const string manName[5 阅读全文
posted @ 2022-02-19 22:45 icefield817 阅读(85) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> using namespace std; class Base { public: int k; Base(int n):k(n) { } }; class Big { public: int v; Base b; Big( 阅读全文
posted @ 2022-02-19 22:44 icefield817 阅读(69) 评论(0) 推荐(0) 编辑