![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++第三章
csx0987
这个作者很懒,什么都没留下…
展开
-
第三章 第5题
#include "iostream"#include "string"using namespace std;class Student{private: double Grade; string Name;public: Student(string,double); friend double Max(Student *p);};Student::Studen原创 2015-04-22 12:50:37 · 358 阅读 · 0 评论 -
第三章 第8题
#include "iostream"using namespace std;class Student{private: int num; float score;public: Student(int ,float); void change(int,float); void display(); friend void fun(Student&);};Stu原创 2015-04-22 13:25:42 · 315 阅读 · 0 评论 -
第三章 第9题
#include using namespace std;class Product{public: Product(int n,int q,float p):num(n),quantity(q),price(p){}; void total(); static float average(); static void display(); pr原创 2015-04-22 13:42:29 · 390 阅读 · 0 评论 -
第三章 第10题
#include using namespace std;class Date;class Time {public: Time(int,int,int); friend void display(const Date &,const Time &); private: int hour; int minute; int sec;原创 2015-04-22 13:44:58 · 263 阅读 · 0 评论 -
第三章 第11题
#include using namespace std;class Time;class Date {public: Date(int,int,int); friend Time;private: int month; int day; int year; }; Date::Date(int m,int d,int y):m原创 2015-04-22 13:46:34 · 267 阅读 · 0 评论 -
第三章 第12题
#include using namespace std;templateclass Compare {public: Compare(numtype a,numtype b); numtype max(); numtype min(); private: numtype x,y; };template Compare::Compa原创 2015-04-22 13:49:46 · 441 阅读 · 0 评论 -
第三章 第3题
#include "iostream"using namespace std;class Date{private: int month; int day; int year;public: Date(int=1,int=1,int=2005); void display();};Date::Date(int m,int d,int y):month(m),day原创 2015-04-22 12:26:50 · 283 阅读 · 0 评论 -
第三章 第4题
#include "iostream"#include "string"using namespace std;class Student{private: string Name; string Num;public: Student(string,string); void display();};Student::Student(string Na,strin原创 2015-04-22 12:40:07 · 289 阅读 · 0 评论