原创 第六週作業(一)

#include <iostream> using namespace std; class C { private:  int x; public:  C(int x){this->x=x;}  int getX(){return x;

原创 第六週任務(四)

#include<iostream> #include<Cmath> using namespace std; class Cpoint //定義一個點類 { private: double x; double y; pub

原创 第五週作業(四)

#include <iostream>   using namespace std;   class student   {   public:       student (int n,int s);       void max_

原创 第八週實驗(三)

#include <iostream> using namespace std; class CFraction { private: int nume; // 分子 int deno; //

原创 2012.4

#include <iostream> using namespace std; class Time { private:  void set_time(void);  void show_time(void); public:  

原创 第六週作業(二.1)

#include <iostream> using namespace std; class A { private:  int a; public

原创 第八週實驗報告(一.3)

/* (程序頭部註釋開始) * 程序的版權和版本聲明部分 * Copyright (c) 2011, 煙臺大學計算機學院學生  * All righ

原创 第十三週作業(一)

(任務1.1)請寫出程序的執行結果,並在上機時對照理解#include <iostream> using namespace std; class Vehicle { public: void run() const { co

原创 那一年,一起追過的C++

                                                                                                                     

原创 第七週實驗報告(二)

/*(文件註釋頭部開始) *程序的版權和版本聲明部分 *Copyright (c) 2011,煙臺大學計算機學院學生 *All rights reserved. *文件名稱:平面座標點類 *作 者:李騰 *完成日期:2012

原创 第八週實驗(二)

/* (程序頭部註釋開始) * 程序的版權和版本聲明部分 * Copyright (c) 2011, 煙臺大學計算機學院學生 * All rights reserved. * 文件名稱:

原创 第五週作業(三)

#include <iostream>   using namespace std;   class Box   {   public:    Box();    Box(int h,int w,int l):height(h),wi

原创 第八週實驗(一.2)

/* (程序頭部註釋開始) * 程序的版權和版本聲明部分 * Copyright (c) 2011, 煙臺大學計算機學院學生  * All righ

原创 第七週實驗報告(一)

/* (程序頭部註釋開始)   * 程序的版權和版本聲明部分   * Copyright (c) 2011, 煙臺大學計算機學院學生    * All rights reserved.   * 文件名稱:Time         

原创 第八週實驗(一.1)

/* (程序頭部註釋開始) * 程序的版權和版本聲明部分 * Copyright (c) 2011, 煙臺大學計算機學院學生  * All righ