- 博客(8)
- 收藏
- 关注
原创 第五章
#include using namespace std; class Student {public: void get_value() {cin>>num>>name>>sex;} void display( ) {cout cout cout private: int num; char name[10]; char s
2015-05-21 11:26:59
385
原创 第四章
#include using namespace std; class Complex {public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} double get_real(); double get_imag(); void display(); pr
2015-05-21 11:07:47
265
原创 TimeDate
#include class Time{ public: Time(){} Time(int h,int m,int s) { hour=h; minute=m; second=s; } friend istream & operator>>(istream &,Time &
2015-05-12 18:30:31
498
原创 第三章
第四题 #include using namespace std; class Student {public: Student(int n,float s):xuehao(n),chengji(s){} void display(); private: int xuehao; float chengji; }; void Stude
2015-04-20 08:22:59
335
原创 第二章
第二题 #include using namespace std; class Time {public: void set_time(void) {cin>>hour; cin>>minute; cin>>sec; } void show_time(void) {cout private: int
2015-04-19 21:45:21
296
原创 第一章作业
第七题 #include using namespace std; int max(int a,int b,int c) {if(b>a) a=b; if(c>a) a=c; return a; } int max(int a,int b) {if(a>b) return a; else return b; } int main() { int a,
2015-04-19 21:12:43
226
原创 第一章作业
第七题 #include using namespace std; int max(int a,int b,int c) {if(b>a) a=b; if(c>a) a=c; return a; } int max(int a,int b) {if(a>b) return a; else return b; } int main() { int a,
2015-04-19 20:11:22
555
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅