摘要:
#include <cstdlib> #include <iostream> #include <string> #include <algorithm> using namespace std; class MyString:public string { public : MyString(){ 阅读全文
摘要:
#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 阅读全文
摘要:
#include <iostream> #include <cstring> #include <cstdlib> #include <cstdio> using namespace std; const int MAX = 110; class CHugeInt { public: int a[2 阅读全文
摘要:
#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) 阅读全文
摘要:
#include <iostream> using namespace std; class Animal { public: static int number; virtual ~Animal() { } }; class Dog:public Animal { public: static i 阅读全文
摘要:
#include <iostream> using namespace std; class Point { private: int x; int y; public: Point() { }; friend istream& operator>> (istream & is,Point & pp 阅读全文
摘要:
#include <iostream> #include <string> #include <cstring> using namespace std; class MyString { char * p; public: MyString(const char * s) { if( s) { p 阅读全文
摘要:
#include <iostream> using namespace std; class MyInt { int nVal; public: MyInt( int n) { nVal = n ;} MyInt& operator- (int n) { nVal -= n; return *thi 阅读全文
摘要:
#include <iostream> #include <string> using namespace std; static int n; static int* sumBloodArr; static int (*manBloodArr)[5]; const string manName[5 阅读全文
摘要:
#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( 阅读全文