- 博客(5)
- 收藏
- 关注
原创 作业
#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; int se
2015-05-11 22:15:50
218
原创 +-+
//+-= #include #include class string { protected: char *sp; public: string(){sp=0;} string(string &); string(char *s) { sp=new char[strlen(s)+1]; strcpy(sp,s); } ~string (){if(sp)delete
2015-04-27 22:41:40
257
原创 重载 比较
#include using namespace std; class String { public: String(); String(const char*const ch); int getlen()const { return len;} friend ostream&operator<<(ostream &o, const
2015-04-27 22:39:32
244
原创 作业0327
P35 T7 #include using namespace std; int main() { int a,b,c; int f(int x,int y,int z); cin>>a>>b>>c; c=f(a,b,c); cout return 0; } int f(int x,int y,int z) { int m; if(x>y) m=x; else
2015-03-28 14:54:53
238
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅