- 博客(4)
- 收藏
- 关注
原创 时间加减
#include#include using namespace std; class Time { public: Time(int h=0,int m=0,int s=0); Time operator+(Time&); void disptime(string);private: int hourse; int minutes;
2015-05-11 23:06:23 271
原创 比较
#include using namespace std;class String{public: String(); String(const char*const ch); int getlen()const { return len;} friend ostream&operator {
2015-04-27 22:31:59 210
原创 加减运算
//+-=#include#includeclass string{protected: char *sp;public: string(){sp=0;} string(string &); string(char *s) { sp=new char[strlen(s)+1]; strcpy(sp,s); } ~string
2015-04-27 22:29:20 299
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人