原创 2.1改寫

#include<iostream>  using namespace std;  class Time  {  private:  int hou

原创 8.cpp

#include <iostream> using namespace std; class Student { public: Student(int n,float s):num(n),score(s){} void

原创 第二章 — 4

//xt2-4-1.cpp(main.cpp) #include <iostream> using namespace std; #include "student.h" int main() {Student stud; st

原创 關於類的結構圖

原创 6.cpp

<img src="https://img-blog.csdn.net/20150419111357242" alt="" />#include <iostream> using namespace std; class Studen

原创 9.cpp

<img src="https://img-blog.csdn.net/20150419170526210" alt="" />#include <iostream> using namespace std; class Produc

原创 第二章—5

//xt2-5-1.cpp(file1.cpp) #include <iostream> #include "xt2-5.h" int main()  {Array_max arrmax; arrmax.set_value()

原创 12.cpp

<img src="https://img-blog.csdn.net/20150420160731033" alt="" /><pre class="html" name="code">#include <iostream> usin

原创 11.cpp

<img src="https://img-blog.csdn.net/20150419225155812" alt="" />#include <iostream> using namespace std; class Time;

原创 5.cpp

#include <iostream> using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} int num

原创 4.cpp

<img src="https://img-blog.csdn.net/20150419110029191" alt="" />#include <iostream> using namespace std; class Studen

原创 3.cpp

#include <iostream> using namespace std; class Complex {public: Complex() {real=0;imag=0;} Complex(do

原创 2.cpp

<img src="https://img-blog.csdn.net/20150419224325878" alt="" />#include <iostream> using namespace std; class Date

原创 10.cpp

<img src="https://img-blog.csdn.net/20150419224808348" alt="" />#include <iostream> using namespace std; class Date;

原创 7.cpp

<img src="https://img-blog.csdn.net/20150419112050471" alt="" />#include <iostream> using namespace std; class Studen